summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorVikram Aggarwal <viki@google.com>2012-05-04 14:09:52 -0700
committerVikram Aggarwal <viki@google.com>2012-05-04 14:15:55 -0700
commit6ebbd30e18ca514ca9ee87ffa428c55c9fd92a8c (patch)
tree2301e9231c98cd0bf2199cebfa8e9249fa5b8627 /src/com
parent8b399cc71c960db05aa804c7e982709a1af5502d (diff)
downloadpackages_apps_settings-6ebbd30e18ca514ca9ee87ffa428c55c9fd92a8c.zip
packages_apps_settings-6ebbd30e18ca514ca9ee87ffa428c55c9fd92a8c.tar.gz
packages_apps_settings-6ebbd30e18ca514ca9ee87ffa428c55c9fd92a8c.tar.bz2
Write the airplane setting in addition to sending the Intent.
dab was right. :) Fix b/6006192 in association with https://android-git.corp.google.com/g/187160 Change-Id: I3edfb3191ab35a4e5de1b18f3e2e1dae5f882354
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/CryptKeeper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java
index 928b45b..10c067d 100644
--- a/src/com/android/settings/CryptKeeper.java
+++ b/src/com/android/settings/CryptKeeper.java
@@ -33,6 +33,7 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemProperties;
import android.os.storage.IMountService;
+import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
@@ -628,6 +629,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
TelephonyManager.getDefault().getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE;
if (!isLteDevice) {
Log.d(TAG, "Going into airplane mode.");
+ Settings.System.putInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 1);
final Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", true);
sendBroadcast(intent);