Switch to Now Playing when selecting media

Back stack is currently broken
This commit is contained in:
Andrew Rabert 2019-08-28 00:24:25 -04:00
parent 3ebb48682b
commit 687f64c115
1 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,8 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
SearchFragment fragment = new SearchFragment(); SearchFragment fragment = new SearchFragment();
replaceFragment(fragment, fragment.getSupportTag()); replaceFragment(fragment, fragment.getSupportTag());
} }
} else if (intent.getBooleanExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, false)) {
openNowPlaying();
} else { } else {
setIntent(intent); setIntent(intent);
} }
@ -274,6 +276,10 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
} }
} }
public void openNowPlaying() {
startFragmentActivity("Now Playing");
}
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();