summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/dialpad
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-03-19 14:53:27 -0700
committerAndrew Lee <anwlee@google.com>2015-03-19 14:53:27 -0700
commitbeb1dfe1884d8707b2c2e32125098a87cce794fb (patch)
treec71b55e8dd3aa8cfa86832a27272ee21e0d47594 /src/com/android/dialer/dialpad
parent87dc7309388941ec0017f3ff1aee329364dec484 (diff)
downloadandroid_packages_apps_Dialer-beb1dfe1884d8707b2c2e32125098a87cce794fb.tar.gz
android_packages_apps_Dialer-beb1dfe1884d8707b2c2e32125098a87cce794fb.tar.bz2
android_packages_apps_Dialer-beb1dfe1884d8707b2c2e32125098a87cce794fb.zip
Remove extra options from dialpad menu.
These are now exposed as shortcuts in the search fragment. Bug: 19372539 Change-Id: I526570cf8326dbfac1770c0f3c06b72ee1166cc8
Diffstat (limited to 'src/com/android/dialer/dialpad')
-rw-r--r--src/com/android/dialer/dialpad/DialpadFragment.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java
index fbf862fc6..a910f7a1e 100644
--- a/src/com/android/dialer/dialpad/DialpadFragment.java
+++ b/src/com/android/dialer/dialpad/DialpadFragment.java
@@ -258,8 +258,6 @@ public class DialpadFragment extends Fragment
private boolean mFirstLaunch = false;
private boolean mAnimate = false;
- private ComponentName mSmsPackageComponentName;
-
private static final String PREF_DIGITS_FILLED_BY_INTENT = "pref_digits_filled_by_intent";
private TelephonyManager getTelephonyManager() {
@@ -660,8 +658,6 @@ public class DialpadFragment extends Fragment
stopWatch.stopAndLog(TAG, 50);
- mSmsPackageComponentName = DialerUtils.getSmsComponent(activity);
-
// Populate the overflow menu in onResume instead of onCreate, so that if the SMS activity
// is disabled while Dialer is paused, the "Send a text message" option can be correctly
// removed when resumed.
@@ -878,8 +874,6 @@ public class DialpadFragment extends Fragment
@Override
public void show() {
final Menu menu = getMenu();
- final MenuItem sendMessage = menu.findItem(R.id.menu_send_message);
- sendMessage.setVisible(mSmsPackageComponentName != null);
boolean enable = !isDigitsEmpty();
for (int i = 0; i < menu.size(); i++) {
@@ -1449,26 +1443,12 @@ public class DialpadFragment extends Fragment
@Override
public boolean onMenuItemClick(MenuItem item) {
switch (item.getItemId()) {
- case R.id.menu_add_contact: {
- final CharSequence digits = mDigits.getText();
- DialerUtils.startActivityWithErrorToast(getActivity(),
- DialtactsActivity.getAddNumberToContactIntent(digits));
- return true;
- }
case R.id.menu_2s_pause:
updateDialString(PAUSE);
return true;
case R.id.menu_add_wait:
updateDialString(WAIT);
return true;
- case R.id.menu_send_message: {
- final CharSequence digits = mDigits.getText();
- final Intent smsIntent = new Intent(Intent.ACTION_SENDTO,
- Uri.fromParts(ContactsUtils.SCHEME_SMSTO, digits.toString(), null));
- smsIntent.setComponent(mSmsPackageComponentName);
- DialerUtils.startActivityWithErrorToast(getActivity(), smsIntent);
- return true;
- }
default:
return false;
}