diff options
Diffstat (limited to 'src/com/android/settings/Settings.java')
-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)); } } |