summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2016-07-28 12:29:40 +0100
committerRicardo Cerqueira <ricardo@cyngn.com>2016-07-28 12:34:47 +0100
commit14a996fdb68ae6e0f2e398c968eb1409a956f441 (patch)
treecca82d11c6c51168ca1df323313c348bb20391c8 /src
parent39a3d541b75bd3aa8ebde881fd8fbe5821257fa6 (diff)
downloadpackages_apps_Settings-14a996fdb68ae6e0f2e398c968eb1409a956f441.zip
packages_apps_Settings-14a996fdb68ae6e0f2e398c968eb1409a956f441.tar.gz
packages_apps_Settings-14a996fdb68ae6e0f2e398c968eb1409a956f441.tar.bz2
SimSettings: Make provisioning optional even if qti-telephony is present
Current code assumes the manual provisioning options should come up if the qti-telephony blob is present. Don't make that assumption. Change-Id: I5e4f28b628e3fe3fe9e506631e92c85103e87ccf
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/sim/SimSettings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java
index 88ed36f..b97ee03 100644
--- a/src/com/android/settings/sim/SimSettings.java
+++ b/src/com/android/settings/sim/SimSettings.java
@@ -512,7 +512,8 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
// Disable manual provisioning option to user when
// device is in Airplane mode. Hide it if the extphone framework
// is not present, as the operation relies on said framework.
- if (mExtTelephony == null) {
+ if (mExtTelephony == null ||
+ !mContext.getResources().getBoolean(R.bool.config_enableManualSubProvisioning)) {
mSwitch.setVisibility(View.GONE);
} else {
mSwitch.setVisibility(View.VISIBLE);