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

Commit 5fafc49d authored by Jing Ji's avatar Jing Ji
Browse files

Allow pre-warming service running in work profiles

Bug: 172969480
Test: Manual - setup a work profile & verify the pre-warming service
      is started after power-cycle.
Change-Id: I4fe0d6ea033e328f88c404b8e3e484015712e6e9
parent f00473f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -805,6 +805,7 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
    void updateKeepWarmLocked() {
        mKeepWarming = ams.mConstants.KEEP_WARMING_SERVICES.contains(name)
                && (ams.mUserController.getCurrentUserId() == userId
                || ams.mUserController.isCurrentProfile(userId)
                || ams.isSingleton(processName, appInfo, instanceName.getClassName(),
                        serviceInfo.flags));
    }