aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SearchFragment.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SearchFragment.java b/src/github/daneren2005/dsub/fragments/SearchFragment.java
index 066a940f..0ab08776 100644
--- a/src/github/daneren2005/dsub/fragments/SearchFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SearchFragment.java
@@ -61,6 +61,7 @@ public class SearchFragment extends SubsonicFragment {
private ListAdapter moreSongsAdapter;
private EntryAdapter songAdapter;
private boolean skipSearch = false;
+ private String currentQuery;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -142,6 +143,12 @@ public class SearchFragment extends SubsonicFragment {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
+ switch (item.getItemId()) {
+ case R.id.menu_search:
+ context.startSearch(currentQuery, false, null, false);
+ return true;
+ }
+
return super.onOptionsItemSelected(item);
}
@@ -191,6 +198,8 @@ public class SearchFragment extends SubsonicFragment {
skipSearch = false;
return;
}
+ currentQuery = query;
+
mergeAdapter = new MergeAdapter();
list.setAdapter(mergeAdapter);