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

Commit 0c2680c2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "WifiState: Don't aquire transitionwakelock in airplane mode"

parents 3278774e 4e13d88c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3879,11 +3879,14 @@ public class WifiStateMachine extends StateMachine {
        }
        @Override
        public void exit() {
            if (Settings.Global.getInt(mContext.getContentResolver(),
                    Settings.Global.AIRPLANE_MODE_ON, 0) != 1) {
                /* Request a CS wakelock during transition to mobile */
                checkAndSetConnectivityInstance();
                mCm.requestNetworkTransitionWakelock(getName());
            }
        }
    }

    class DisconnectingState extends State {
        @Override