Fixed bug where app shortcuts wouldn't work when app was already open

This commit is contained in:
Adrian Campos 2017-03-09 19:03:22 -08:00 committed by Karim Abou Zeid
commit 34f2f8b936
3 changed files with 19 additions and 2 deletions

View file

@ -268,6 +268,13 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
handlePlaybackIntent(getIntent());
}
//Called when there's already an instance of MainActivity
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
handlePlaybackIntent(intent);
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == android.R.id.home) {