summaryrefslogtreecommitdiff
path: root/src/com/android/dialer
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-02-24 11:57:57 -0800
committerTyler Gunn <tgunn@google.com>2014-02-24 20:00:28 +0000
commita8ff9750831fcc276354ed80fad3b54316489383 (patch)
tree52efcc429a399f08db90468b7faea2a2a191329f /src/com/android/dialer
parenta875dec3a4911bb23e34af6d25e7cacc7395e239 (diff)
UX Changes: Dialer actionbar, tabs and searchbox.
See CL 423036 for the searchbox text changes. Bug: 13167901 Change-Id: I6806cb27c19f7f0ca55394d70134f0c30c93446b
Diffstat (limited to 'src/com/android/dialer')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java14
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();
}