Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b558c19 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Reduce widget exemption status." into rvc-dev am: 691ca6fd

Change-Id: Ib35d7f25ab5b026e4bb1194dd5956d494eec3ba0
parents bbd3af4d 691ca6fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)) {
+1 −1
Original line number Diff line number Diff line
@@ -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));
    }