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
|
@Override
|
||||||
protected void onPostExecute(List<Rule> result) {
|
protected void onPostExecute(List<Rule> result) {
|
||||||
if (running) {
|
if (running) {
|
||||||
if (menuSearch != null)
|
|
||||||
MenuItemCompat.collapseActionView(menuSearch);
|
|
||||||
if (adapter != null)
|
if (adapter != null)
|
||||||
adapter.set(result);
|
adapter.set(result);
|
||||||
|
if (menuSearch != null)
|
||||||
|
MenuItemCompat.collapseActionView(menuSearch);
|
||||||
if (swipeRefresh != null) {
|
if (swipeRefresh != null) {
|
||||||
refreshing = false;
|
refreshing = false;
|
||||||
swipeRefresh.setRefreshing(false);
|
swipeRefresh.setRefreshing(false);
|
||||||
|
|
Loading…
Reference in New Issue