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

Commit ccf2bde1 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 am: 6b558c19 am: 855c75f7

Change-Id: I20d68f2fe614ab6178b4d6f3da94131ff60d6480
parents 25cb277d 855c75f7
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));
    }