From 7b447bdacb3035bdbafcd42935bef672ced8ce25 Mon Sep 17 00:00:00 2001 From: iunk Date: Mon, 18 Jan 2016 12:25:23 -0600 Subject: [PATCH] keep search while refreshing the list; --- app/src/main/java/eu/faircode/netguard/ActivityMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index 610479cf..164dc84b 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -199,7 +199,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences @Override public void onRefresh() { SinkholeService.reload(null, "pull", ActivityMain.this); - updateApplicationList(null); + SearchView searchView = (SearchView) MenuItemCompat.getActionView(menuSearch); + updateApplicationList(menuSearch.isActionViewExpanded() ? searchView.getQuery().toString() : null); } });