aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-11-26 11:46:06 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-11-26 11:46:06 -0800
commitb05810f99b071882b5b20a8fb46e3fe8b9be4742 (patch)
tree93e7d00270eb7df08d2c093bdd5ff6745318eba4 /src/github
parent63bbb8b1947130bbdad1ba4faeaa59a640743386 (diff)
downloaddsub-b05810f99b071882b5b20a8fb46e3fe8b9be4742.tar.gz
dsub-b05810f99b071882b5b20a8fb46e3fe8b9be4742.tar.bz2
dsub-b05810f99b071882b5b20a8fb46e3fe8b9be4742.zip
Fix clicking action from within search frag
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index 655cce7b..e74f6ff3 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -211,7 +211,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
- if(currentFragment != null && currentFragment instanceof SearchFragment) {
+ if(currentFragment != null && currentFragment instanceof SearchFragment && intent.getStringExtra(Constants.INTENT_EXTRA_NAME_QUERY) != null) {
String query = intent.getStringExtra(Constants.INTENT_EXTRA_NAME_QUERY);
boolean autoplay = intent.getBooleanExtra(Constants.INTENT_EXTRA_NAME_AUTOPLAY, false);
boolean requestsearch = intent.getBooleanExtra(Constants.INTENT_EXTRA_REQUEST_SEARCH, false);