diff options
author | Yorke Lee <yorkelee@google.com> | 2014-07-21 23:12:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-20 04:41:30 +0000 |
commit | 80c81b1170c692cccdfe76f695fee74525e04a75 (patch) | |
tree | 1348d5373c3bf77d37048f74d4118181f8f6cc27 /src | |
parent | 35797d6acbc5d5c7bc7d52bde9a4d14ed9426986 (diff) | |
parent | 6eec22839828f77d64ddf1cbf2858fa62fd5c7fd (diff) |
Merge "Expose call settings as public API (3/3)" into lmp-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index a19964b60..bf2af138a 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -36,6 +36,7 @@ import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.Intents; import android.speech.RecognizerIntent; import android.support.v4.view.ViewPager; +import android.telecomm.TelecommManager; import android.telephony.TelephonyManager; import android.text.Editable; import android.text.TextUtils; @@ -114,10 +115,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O public static final String SHARED_PREFS_NAME = "com.android.dialer_preferences"; - /** Used to open Call Setting */ - private static final String PHONE_PACKAGE = "com.android.phone"; - private static final String CALL_SETTINGS_CLASS_NAME = - "com.android.phone.CallFeaturesSetting"; /** @see #getCallOrigin() */ private static final String CALL_ORIGIN_DIALTACTS = "com.android.dialer.DialtactsActivity"; @@ -926,8 +923,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O /** Returns an Intent to launch Call Settings screen */ public static Intent getCallSettingsIntent() { - final Intent intent = new Intent(Intent.ACTION_MAIN); - intent.setClassName(PHONE_PACKAGE, CALL_SETTINGS_CLASS_NAME); + final Intent intent = new Intent(TelecommManager.ACTION_SHOW_CALL_SETTINGS); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return intent; } |