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
This commit is contained in:
Fabrice Di Meglio
2014-06-19 11:29:26 -07:00
parent b11f132e07
commit c70b7f6f35
5 changed files with 28 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;
}