am e5e4282a: Enable the call setting when the VoIP feature is supported.

Merge commit 'e5e4282af1d2d4277c8e2c13a312be0187f44257' into gingerbread-plus-aosp

* commit 'e5e4282af1d2d4277c8e2c13a312be0187f44257':
  Enable the call setting when the VoIP feature is supported.
This commit is contained in:
Chung-yih Wang
2010-09-10 19:52:31 -07:00
committed by Android Git Automerger

View File

@@ -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;
@@ -56,7 +57,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));
}
}