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

Commit c01ba4a2 authored by Yu-Han Yang's avatar Yu-Han Yang Committed by Android (Google) Code Review
Browse files

Merge "Fix under-locked wakelock"

parents 438fd755 a5ad3b54
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());
            }