Fixed application list not always refreshing

This commit is contained in:
M66B 2015-11-01 14:28:03 +01:00
parent d9fcc4e1b4
commit 3e922a9975
1 changed files with 2 additions and 2 deletions

View File

@ -249,10 +249,10 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
@Override
protected void onPostExecute(List<Rule> 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);