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: Ib856cc33f9058c10303d239e60a0ee4c322385a1
This commit is contained in:
Fabrice Di Meglio
2014-06-19 11:29:26 -07:00
parent ee18fdbec8
commit bba732d1cb
4 changed files with 7 additions and 44 deletions

View File

@@ -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;
}