mirror of https://github.com/M66B/NetGuard.git
Filter log on resume
This commit is contained in:
parent
8b7820864c
commit
a8216a5e1f
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue