From 2acaf22ad16a6fedaf71c745c32031744e323f15 Mon Sep 17 00:00:00 2001 From: Johan Redestig Date: Fri, 28 Jun 2013 10:37:07 +0200 Subject: [PATCH] Dont enable Wi-Fi if it's not toggleable in flight mode Dont enable Wi-Fi if it's not toggleable in flight mode by restoring the return which was removed by e78c1879058571c00879f0d3e756951302adf513 Change-Id: I8ca5a3e9b3f36f148f08ce97b8a2b854bf7de21c --- src/com/android/settings/wifi/WifiEnabler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/wifi/WifiEnabler.java b/src/com/android/settings/wifi/WifiEnabler.java index 641a7ab42e0..a232d610f57 100644 --- a/src/com/android/settings/wifi/WifiEnabler.java +++ b/src/com/android/settings/wifi/WifiEnabler.java @@ -108,6 +108,7 @@ public class WifiEnabler implements CompoundButton.OnCheckedChangeListener { Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show(); // Reset switch to off. No infinite check/listenenr loop. buttonView.setChecked(false); + return; } // Disable tethering if enabling Wifi