Merge "Reduce widget exemption status." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
691ca6fd78
@@ -1098,8 +1098,7 @@ public class AppStandbyController implements AppStandbyInternal {
|
||||
|
||||
if (mAppWidgetManager != null
|
||||
&& mInjector.isBoundWidgetPackage(mAppWidgetManager, packageName, userId)) {
|
||||
// TODO: consider lowering to ACTIVE
|
||||
return STANDBY_BUCKET_EXEMPTED;
|
||||
return STANDBY_BUCKET_ACTIVE;
|
||||
}
|
||||
|
||||
if (isDeviceProvisioningPackage(packageName)) {
|
||||
|
||||
@@ -387,7 +387,7 @@ public class AppStandbyControllerTests {
|
||||
@Test
|
||||
public void testBoundWidgetPackageExempt() throws Exception {
|
||||
assumeTrue(mInjector.getContext().getSystemService(AppWidgetManager.class) != null);
|
||||
assertEquals(STANDBY_BUCKET_EXEMPTED,
|
||||
assertEquals(STANDBY_BUCKET_ACTIVE,
|
||||
mController.getAppStandbyBucket(PACKAGE_EXEMPTED_1, USER_ID,
|
||||
mInjector.mElapsedRealtime, false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user