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

Commit 535e5f3d authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

WifiService: Fix wifi re-enabling after user exits airplane mode (lost in merge)

Same as I4b501139b660255fc935d6a12fd6ecf44d06ec6e, which was lost
in the merge

Change-Id: I0208731a35b81e2df8f6c45615fe16caed66b558
parent bec96948
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -497,7 +497,8 @@ public class WifiService extends IWifiManager.Stub {
                mPersistWifiState.set(WIFI_ENABLED);
            }
        } else {
            if (airplane) {
            if (airplane && mPersistWifiState.get() != WIFI_ENABLED_AIRPLANE_OVERRIDE) {
                // In this state, Wi-Fi will be re-enabled after airplane mode is off
                mPersistWifiState.set(WIFI_DISABLED_AIRPLANE_ON);
            } else {
                mPersistWifiState.set(WIFI_DISABLED);