Merge pull request #234 from rgarza/master

keep search while refreshing the list;
This commit is contained in:
Marcel Bokhorst 2016-01-18 19:34:17 +01:00
commit 75f048e266
1 changed files with 2 additions and 1 deletions

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