1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-26 08:02:47 +00:00

keep search while refreshing the list;

This commit is contained in:
iunk 2016-01-18 12:25:23 -06:00
parent 10634c0c05
commit 7b447bdacb

View file

@ -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);
}
});