summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/HighlightingFragment.java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-06-19 11:29:26 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-06-19 13:58:22 -0700
commitc70b7f6f359a87c614e582fdae0cdeee8c61138e (patch)
treeb363dca0dee2f683141ef773cd58276b65b223fd /src/com/android/settings/HighlightingFragment.java
parentb11f132e0769bcd28fb71a94b917c3cc420e8333 (diff)
downloadpackages_apps_Settings-c70b7f6f359a87c614e582fdae0cdeee8c61138e.tar.gz
packages_apps_Settings-c70b7f6f359a87c614e582fdae0cdeee8c61138e.tar.bz2
packages_apps_Settings-c70b7f6f359a87c614e582fdae0cdeee8c61138e.zip
Improve Search results highlighting
- remove unnecessary code - use keyed Tag with a well known App key for preventing collisions - fix missing Brightness Level preference key (used for highlight) Change-Id: I070e3b8c3cb43da7addd34be192aade21951f57c
Diffstat (limited to 'src/com/android/settings/HighlightingFragment.java')
-rw-r--r--src/com/android/settings/HighlightingFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/HighlightingFragment.java b/src/com/android/settings/HighlightingFragment.java
index 1424abdab..4a233b422 100644
--- a/src/com/android/settings/HighlightingFragment.java
+++ b/src/com/android/settings/HighlightingFragment.java
@@ -116,7 +116,7 @@ public class HighlightingFragment extends Fragment {
}
private boolean checkTag(View view, String key) {
- final Object tag = view.getTag();
+ final Object tag = view.getTag(R.id.preference_highlight_key);
if (tag == null || !(tag instanceof String)) {
return false;
}