mirror of https://github.com/M66B/NetGuard.git
Fixed application list not always refreshing
This commit is contained in:
parent
d9fcc4e1b4
commit
3e922a9975
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue