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

Commit a5ad3b54 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Fix under-locked wakelock

Bug: 159851863
Test: on device
Change-Id: I09e799ad1510bb6f8b5883a73e0a5d552fa36f88
parent 4066e20e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -844,9 +844,10 @@ public class GnssLocationProvider extends AbstractLocationProvider implements

            if (data == null) {
                // try again later
                // since this is delayed and not urgent we do not hold a wake lock her
                // since this is delayed and not urgent we do not hold a wake lock here
                // the arg2 below should not be 1 otherwise the wakelock will be under-locked.
                mHandler.sendMessageDelayed(
                        mHandler.obtainMessage(DOWNLOAD_PSDS_DATA, psdsType, 1, null),
                        mHandler.obtainMessage(DOWNLOAD_PSDS_DATA, psdsType, 0, null),
                        mPsdsBackOff.nextBackoffMillis());
            }