Files
app_Settings/src/com/android/settings
Matthew Fritze 33f3e3f4f7 Search results always highlight proper results
In fragments where preferences were being injected after
the super#onResume, the incorrect preference was
being highlighted as the selected result.

This is because the index of the preference is calculated
in SettingsPreferenceFragment#onResume, but the index is
not checked again before the item is highlighted.

Instead, we calculate index right before we highlight.

Change-Id: Idaa655f682a1a6186c1996fb51d352589bbeda0f
Fixes: 62179739
Test: runtest --path packages/apps/Settings/tests/app/src/com/android/settings/SettingsPreferenceFragmentTest.java
2017-06-08 16:25:52 -07:00
..
2017-06-02 10:21:32 -07:00
2017-03-08 16:28:02 -08:00
2017-05-31 12:04:01 -07:00
2017-02-24 12:03:09 -07:00
2016-12-14 22:41:58 +00:00
2017-05-24 19:59:15 +00:00