diff options
author | Yorke Lee <yorkelee@google.com> | 2014-07-18 12:40:27 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-07-21 15:32:33 -0700 |
commit | 6eec22839828f77d64ddf1cbf2858fa62fd5c7fd (patch) | |
tree | 7b787ddccdd4879d9ee3a046d7d03d85913b63a5 /src | |
parent | e06611fa108e7e9aa1fe23f14c3433a80c3dcb17 (diff) |
Expose call settings as public API (3/3)
Use new call settings intent in Dialer
Bug: 16298644
Change-Id: Ia615797e20f396a38fe382f3a2d54ec41c5249ef
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; } |