diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-11-26 11:29:35 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-11-26 11:29:35 -0800 |
commit | eb12a600db94d7dbc8b69cffbe1dc2fb303718cc (patch) | |
tree | e5808642be0282b7ed5a1c98a7d3cb6fc81ef6f8 /src | |
parent | f026031bad9f226027c5a009db72d4f6d84d5f5f (diff) | |
download | dsub-eb12a600db94d7dbc8b69cffbe1dc2fb303718cc.tar.gz dsub-eb12a600db94d7dbc8b69cffbe1dc2fb303718cc.tar.bz2 dsub-eb12a600db94d7dbc8b69cffbe1dc2fb303718cc.zip |
Move custom onNewIntent logic to FragActivity
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index b911eea7..53d8eaca 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -356,33 +356,6 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte public void onNothingSelected(AdapterView<?> parent) {
}
-
- @Override
- public void onNewIntent(Intent intent) {
- super.onNewIntent(intent);
-
- if(currentFragment != null && currentFragment instanceof SearchFragment) {
- 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);
-
- if (query != null) {
- ((SearchFragment)currentFragment).search(query, autoplay);
- } else {
- ((SearchFragment)currentFragment).populateList();
- if (requestsearch) {
- onSearchRequested();
- }
- }
- } else if(currentFragment != null && intent.getStringExtra(Constants.INTENT_EXTRA_NAME_QUERY) != null) {
- setIntent(intent);
-
- SearchFragment fragment = new SearchFragment();
- replaceFragment(fragment, currentFragment.getRootId(), fragment.getSupportTag());
- } else {
- setIntent(intent);
- }
- }
private void populateDrawer() {
SharedPreferences prefs = Util.getPreferences(this);
|