From a8ff9750831fcc276354ed80fad3b54316489383 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 24 Feb 2014 11:57:57 -0800 Subject: UX Changes: Dialer actionbar, tabs and searchbox. See CL 423036 for the searchbox text changes. Bug: 13167901 Change-Id: I6806cb27c19f7f0ca55394d70134f0c30c93446b --- src/com/android/dialer/DialtactsActivity.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 227cd8eca..5989e5228 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -526,19 +526,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mSearchView = (EditText) findViewById(R.id.search_view); mSearchView.addTextChangedListener(mPhoneSearchQueryTextListener); - - final String hintText = getString(R.string.dialer_hint_find_contact); - - // The following code is used to insert an icon into a CharSequence (copied from - // SearchView) - final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon - ssb.append(hintText); - final Drawable searchIcon = getResources().getDrawable(R.drawable.ic_ab_search); - final int textSize = (int) (mSearchView.getTextSize() * 1.20); - searchIcon.setBounds(0, 0, textSize, textSize); - ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); - - mSearchView.setHint(ssb); + mSearchView.setHint(getString(R.string.dialer_hint_find_contact)); prepareVoiceSearchButton(); } -- cgit v1.2.3