diff options
author | Chung-yih Wang <cywang@google.com> | 2010-09-11 10:24:46 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2010-09-11 10:24:46 +0800 |
commit | e5e4282af1d2d4277c8e2c13a312be0187f44257 (patch) | |
tree | ff91c05aa473a2109df639aee3cb510d00e5d10d /src | |
parent | be45f642cafdd27e5ffeb79b13aa3e33a83ae823 (diff) | |
download | packages_apps_Settings-e5e4282af1d2d4277c8e2c13a312be0187f44257.zip packages_apps_Settings-e5e4282af1d2d4277c8e2c13a312be0187f44257.tar.gz packages_apps_Settings-e5e4282af1d2d4277c8e2c13a312be0187f44257.tar.bz2 |
Enable the call setting when the VoIP feature is supported.
If the VoIP feature is included, the user need to be able to
configure the internet call settings even if it is in airplan mode.
Change-Id: I00d73fb0d9213162b8a9887cad0f800418446787
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/Settings.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java index 5309cf5..b37c340 100644 --- a/src/com/android/settings/Settings.java +++ b/src/com/android/settings/Settings.java @@ -16,6 +16,7 @@ package com.android.settings; +import android.net.sip.SipManager; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceActivity; @@ -51,7 +52,9 @@ public class Settings extends PreferenceActivity { @Override protected void onResume() { super.onResume(); - findPreference(KEY_CALL_SETTINGS).setEnabled(!AirplaneModeEnabler.isAirplaneModeOn(this)); + findPreference(KEY_CALL_SETTINGS).setEnabled( + !AirplaneModeEnabler.isAirplaneModeOn(this) + || SipManager.isVoipSupported(this)); } } |