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

Commit 0a986df1 authored by Hui Yu's avatar Hui Yu
Browse files

mLocalDeviceIdleController could be null.

Bug: 187965254
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Iacb371fdacfd9a927e13472c3fcc114baaa7060a
parent fa13c6c4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14621,7 +14621,9 @@ public class ActivityManagerService extends IActivityManager.Stub
            String reason, @TempAllowListType int type, int callingUid) {
        synchronized (mProcLock) {
            // The temp allowlist type could change according to the reasonCode.
            if (mLocalDeviceIdleController != null) {
                type = mLocalDeviceIdleController.getTempAllowListType(reasonCode, type);
            }
            if (type == TEMPORARY_ALLOW_LIST_TYPE_NONE) {
                return;
            }