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

Commit 691ca6fd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reduce widget exemption status." into rvc-dev

parents 745202ff 107be82a
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));
    }