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

Commit 321ac08a authored by yinxu's avatar yinxu Committed by android-build-merger
Browse files

Merge "Use correct UID for network setting menu" am: 2915575f

am: c2e8af46

Change-Id: Ie21a5e618ef459850b97b7eb9b65e3d18edb941e
parents 79f2c861 c2e8af46
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -460,12 +460,12 @@ public final class NetworkScanRequestTracker {
        // stopped, a new scan will automatically start with nsri.
        // The new scan can interrupt the live scan only when all the below requirements are met:
        //   1. There is 1 live scan and no other pending scan
        //   2. The new scan is requested by system process
        //   3. The live scan is not requested by system process
        //   2. The new scan is requested by mobile network setting menu (owned by PHONE process)
        //   3. The live scan is not requested by mobile network setting menu
        private synchronized boolean interruptLiveScan(NetworkScanRequestInfo nsri) {
            if (mLiveRequestInfo != null && mPendingRequestInfo == null
                    && nsri.mUid == Process.SYSTEM_UID
                            && mLiveRequestInfo.mUid != Process.SYSTEM_UID) {
                    && nsri.mUid == Process.PHONE_UID
                            && mLiveRequestInfo.mUid != Process.PHONE_UID) {
                doInterruptScan(mLiveRequestInfo.mScanId);
                mPendingRequestInfo = nsri;
                notifyMessenger(mLiveRequestInfo, TelephonyScanManager.CALLBACK_SCAN_ERROR,