aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-27 17:36:16 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-27 17:36:16 -0800
commit483147eeae35dc286e0b56ef93f52385e6ad4e5c (patch)
treedba4cfc409a299b7a4a21ef43f500b9854523177
parent1daee69c23a877216da1c7c652c03cf3776eaa96 (diff)
downloaddsub-483147eeae35dc286e0b56ef93f52385e6ad4e5c.tar.gz
dsub-483147eeae35dc286e0b56ef93f52385e6ad4e5c.tar.bz2
dsub-483147eeae35dc286e0b56ef93f52385e6ad4e5c.zip
Fix search no longer putting previous query in input
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SearchFragment.java2
-rw-r--r--app/src/main/res/menu/drawer_menu.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SearchFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SearchFragment.java
index d21b82e0..5c659a6a 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SearchFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SearchFragment.java
@@ -130,7 +130,7 @@ public class SearchFragment extends SubsonicFragment implements SectionAdapter.O
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
- case R.id.menu_search:
+ case R.id.menu_global_search:
context.startSearch(currentQuery, false, null, false);
return true;
}
diff --git a/app/src/main/res/menu/drawer_menu.xml b/app/src/main/res/menu/drawer_menu.xml
index b3e70cfa..21d324a9 100644
--- a/app/src/main/res/menu/drawer_menu.xml
+++ b/app/src/main/res/menu/drawer_menu.xml
@@ -3,7 +3,7 @@
xmlns:compat="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/menu_search"
+ android:id="@+id/menu_global_search"
android:icon="?attr/search"
android:title="@string/menu.search"
compat:showAsAction="always|withText"/>