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

Commit 9bb6ef5a authored by Amith Yamasani's avatar Amith Yamasani Committed by The Android Open Source Project
Browse files

Merge branch 'readonly-p4-master'

parents 494204d6 3e276b18
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2059,6 +2059,8 @@ public class LocationManagerService extends ILocationManager.Stub
    private void updateWakelockStatusLocked(boolean screenOn) {
        log("updateWakelockStatus(): " + screenOn);

        long callerId = Binder.clearCallingIdentity();
        
        boolean needsLock = false;
        long minTime = Integer.MAX_VALUE;

@@ -2102,6 +2104,7 @@ public class LocationManagerService extends ILocationManager.Stub
            mLocationHandler.removeMessages(MESSAGE_RELEASE_WAKE_LOCK);
            releaseWakeLockLocked();
        }
        Binder.restoreCallingIdentity(callerId);
    }

    private void acquireWakeLockLocked() {