Merge "Update the way OMS records details about overlays" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-12-12 21:48:17 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ public class ThemePreferenceControllerTest {
return info;
});
PackageInfo pi = new PackageInfo();
pi.isStaticOverlay = true;
pi.overlayFlags |= PackageInfo.FLAG_OVERLAY_STATIC;
when(mMockPackageManager.getPackageInfo(eq("com.android.Theme1"), anyInt())).thenReturn(pi);
when(mMockPackageManager.getPackageInfo(eq("com.android.Theme2"), anyInt())).thenReturn(
new PackageInfo());