From 3e922a99750e29308f9600212f07d140eb508ab8 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 1 Nov 2015 14:28:03 +0100 Subject: [PATCH] Fixed application list not always refreshing --- app/src/main/java/eu/faircode/netguard/ActivityMain.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index dfffd67e..a2051a7e 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -249,10 +249,10 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences @Override protected void onPostExecute(List result) { if (running) { - if (menuSearch != null) - MenuItemCompat.collapseActionView(menuSearch); if (adapter != null) adapter.set(result); + if (menuSearch != null) + MenuItemCompat.collapseActionView(menuSearch); if (swipeRefresh != null) { refreshing = false; swipeRefresh.setRefreshing(false);