diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 14 |
1 files changed, 1 insertions, 13 deletions
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(); } |