Filter log on resume

This commit is contained in:
M66B 2016-01-27 13:39:25 +01:00
parent 8b7820864c
commit a8216a5e1f
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,10 @@ public class ActivityLog extends AppCompatActivity {
if (live) {
DatabaseHelper.addLogChangedListener(listener);
adapter.changeCursor(dh.getLog());
if (menuSearch != null && menuSearch.isActionViewExpanded()) {
SearchView searchView = (SearchView) MenuItemCompat.getActionView(menuSearch);
adapter.getFilter().filter(searchView.getQuery().toString());
}
}
}