Loading services/core/java/com/android/server/location/gnss/GnssLocationProvider.java +5 −2 Original line number Diff line number Diff line Loading @@ -1343,8 +1343,11 @@ public class GnssLocationProvider extends AbstractLocationProvider implements // it is handled (otherwise the wake lock would be leaked). mWakeLock.acquire(WAKELOCK_TIMEOUT_MILLIS); boolean success = mHandler.post(() -> { try { runnable.run(); } finally { mWakeLock.release(); } }); if (!success) { mWakeLock.release(); Loading Loading
services/core/java/com/android/server/location/gnss/GnssLocationProvider.java +5 −2 Original line number Diff line number Diff line Loading @@ -1343,8 +1343,11 @@ public class GnssLocationProvider extends AbstractLocationProvider implements // it is handled (otherwise the wake lock would be leaked). mWakeLock.acquire(WAKELOCK_TIMEOUT_MILLIS); boolean success = mHandler.post(() -> { try { runnable.run(); } finally { mWakeLock.release(); } }); if (!success) { mWakeLock.release(); Loading