summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-15 11:43:38 -0700
committerAndrew Lee <anwlee@google.com>2014-05-15 11:43:44 -0700
commit752956e3add8b9fff107e1637120a74a61a5fead (patch)
tree492f5c0fea93cb51126a2b93ffa50a4ea8b8e69f /src
parent86321098e4d1e00e6a9f32547d4ee10a717ac290 (diff)
Remove redundant long-click listener.
Change-Id: I73e8e7fdde21d7244aab21cae5ce8dd58b50de9d
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index ea1f60c01..ed92add38 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -99,7 +99,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
DialpadFragment.HostInterface,
ListsFragment.HostInterface,
SpeedDialFragment.HostInterface,
- OnDragDropListener, View.OnLongClickListener,
+ OnDragDropListener,
OnPhoneNumberPickerActionListener,
ViewPager.OnPageChangeListener {
private static final String TAG = "DialtactsActivity";
@@ -493,22 +493,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
}
@Override
- public boolean onLongClick(View view) {
- switch (view.getId()) {
- case R.id.floating_action_button:
- if (mIsDialpadShown) {
- // Dial button was pressed; tell the Dialpad fragment
- mDialpadFragment.dialButtonPressed();
- return true; // Consume the event
- }
- default:
- Log.wtf(TAG, "Unexpected onClick event from " + view);
- break;
- }
- return false;
- }
-
- @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == ACTIVITY_REQUEST_CODE_VOICE_SEARCH) {
if (resultCode == RESULT_OK) {
@@ -775,8 +759,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
}
final FragmentTransaction transaction = getFragmentManager().beginTransaction();
-
- SearchFragment fragment;
if (mInDialpadSearch && mSmartDialSearchFragment != null) {
transaction.remove(mSmartDialSearchFragment);
} else if (mInRegularSearch && mRegularSearchFragment != null) {
@@ -792,7 +774,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mInDialpadSearch = smartDialSearch;
mInRegularSearch = !smartDialSearch;
- fragment = (SearchFragment) getFragmentManager().findFragmentByTag(tag);
+ SearchFragment fragment = (SearchFragment) getFragmentManager().findFragmentByTag(tag);
if (fragment == null) {
if (smartDialSearch) {
fragment = new SmartDialSearchFragment();