diff options
author | Andrew Lee <anwlee@google.com> | 2014-06-06 13:02:59 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-06-06 13:02:59 -0700 |
commit | 891c0e95e0b8839c944e3d819a35c056df3dad05 (patch) | |
tree | f73d7136f93147b5df10cc75cfea384ae94c7df3 | |
parent | 12ec7eb9ee310f38d5f14f2b6fdeb323771abeb6 (diff) | |
parent | 97c57ccec07ac91bacb71699b10dcdd24b750c3c (diff) |
resolved conflicts for merge of 97c57cce to master
Change-Id: Ie2d46ac867c235f1281e02b3e03574f287eacdb3
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 922b38351..43b2c5874 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -61,6 +61,7 @@ import android.view.inputmethod.InputMethodManager; import android.widget.AbsListView.OnScrollListener; import android.widget.EditText; import android.widget.ImageButton; +import android.widget.ImageView; import android.widget.PopupMenu; import android.widget.RelativeLayout; import android.widget.Toast; @@ -220,7 +221,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O private EditText mSearchView; private View mVoiceSearchButton; - private SearchEditTextLayout mSearchEditTextLayout; /** * View that contains the "Remove" dialog that shows up when the user long presses a contact. @@ -362,15 +362,19 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mActionBarController = new ActionBarController(this, (SearchEditTextLayout) actionBar.getCustomView()); - mSearchEditTextLayout = (SearchEditTextLayout) actionBar.getCustomView(); - mSearchEditTextLayout.setPreImeKeyListener(mSearchEditTextLayoutListener); - mSearchView = (EditText) mSearchEditTextLayout.findViewById(R.id.search_view); + SearchEditTextLayout searchEditTextLayout = + (SearchEditTextLayout) actionBar.getCustomView(); + searchEditTextLayout.setPreImeKeyListener(mSearchEditTextLayoutListener); + + mSearchView = (EditText) searchEditTextLayout.findViewById(R.id.search_view); mSearchView.addTextChangedListener(mPhoneSearchQueryTextListener); - mVoiceSearchButton = mSearchEditTextLayout.findViewById(R.id.voice_search_button); - mSearchEditTextLayout.findViewById(R.id.search_box_start_search).setOnClickListener( - mSearchViewOnClickListener); - mSearchEditTextLayout.setOnBackButtonClickedListener(new OnBackButtonClickedListener() { + mVoiceSearchButton = searchEditTextLayout.findViewById(R.id.voice_search_button); + searchEditTextLayout.findViewById(R.id.search_magnifying_glass) + .setOnClickListener(mSearchViewOnClickListener); + searchEditTextLayout.findViewById(R.id.search_box_start_search) + .setOnClickListener(mSearchViewOnClickListener); + searchEditTextLayout.setOnBackButtonClickedListener(new OnBackButtonClickedListener() { @Override public void onBackButtonClicked() { onBackPressed(); @@ -385,8 +389,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mFloatingActionButtonController = new FloatingActionButtonController(this, mIsLandscape, floatingActionButtonContainer); - ImageButton optionsMenuButton = (ImageButton) mSearchEditTextLayout.findViewById( - R.id.dialtacts_options_menu_button); + ImageButton optionsMenuButton = + (ImageButton) searchEditTextLayout.findViewById(R.id.dialtacts_options_menu_button); optionsMenuButton.setOnClickListener(this); final OptionsPopupMenu optionsMenu = buildOptionsMenu(optionsMenuButton); optionsMenuButton.setOnTouchListener(optionsMenu.getDragToOpenListener()); |