From 13a54c7689f18363c873e966a9e4e9d76ed3ffa7 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 28 Mar 2014 13:09:28 -0700 Subject: Remove dead code Change-Id: I6a48467f047d8e845d484fccb751d3a5de52066c --- src/com/android/dialer/DialtactsActivity.java | 11 ----------- src/com/android/dialer/dialpad/DialpadFragment.java | 14 -------------- 2 files changed, 25 deletions(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index cc45a988e..f438570b2 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -123,8 +123,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O private static final int ANIMATION_DURATION = 200; - private String mFilterText; - /** * The main fragment displaying the user's favorites and frequent contacts */ @@ -749,7 +747,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O public void onNewIntent(Intent newIntent) { setIntent(newIntent); displayFragment(newIntent); - final String action = newIntent.getAction(); invalidateOptionsMenu(); } @@ -794,14 +791,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } }; - private void showInputMethod(View view) { - final InputMethodManager imm = (InputMethodManager) getSystemService( - Context.INPUT_METHOD_SERVICE); - if (imm != null) { - imm.showSoftInput(view, 0); - } - } - private void hideInputMethod(View view) { final InputMethodManager imm = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE); diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 36d5cf84b..defd65887 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -391,9 +391,6 @@ public class DialpadFragment extends Fragment vto.addOnPreDrawListener(preDrawListener); - // Load up the resources for the text field. - Resources r = getResources(); - mDigitsContainer = fragmentView.findViewById(R.id.digits_container); mDigits = (EditText) fragmentView.findViewById(R.id.digits); mDigits.setKeyListener(UnicodeDialerKeyListener.INSTANCE); @@ -442,11 +439,6 @@ public class DialpadFragment extends Fragment return fragmentView; } - @Override - public void onStart() { - super.onStart(); - } - private boolean isLayoutReady() { return mDigits != null; } @@ -1048,7 +1040,6 @@ public class DialpadFragment extends Fragment * the previous digit or cancel previously entered character. */ private void removePreviousDigitIfPossible() { - final Editable editable = mDigits.getText(); final int currentPosition = mDigits.getSelectionStart(); if (currentPosition > 0) { mDigits.setSelection(currentPosition); @@ -1166,11 +1157,6 @@ public class DialpadFragment extends Fragment mDigits.getText().clear(); } - private String getCallOrigin() { - return (getActivity() instanceof DialtactsActivity) ? - ((DialtactsActivity) getActivity()).getCallOrigin() : null; - } - private void handleDialButtonClickWithEmptyDigits() { if (phoneIsCdma() && phoneIsOffhook()) { // This is really CDMA specific. On GSM is it possible -- cgit v1.2.3