From a8216a5e1fc1c0ecfb9955b1b61b35dc9f97612e Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 27 Jan 2016 13:39:25 +0100 Subject: [PATCH] Filter log on resume --- app/src/main/java/eu/faircode/netguard/ActivityLog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityLog.java b/app/src/main/java/eu/faircode/netguard/ActivityLog.java index a3312ccc..73387ea6 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityLog.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityLog.java @@ -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()); + } } }