Fixed bug where app shortcuts wouldn't work when app was already open
This commit is contained in:
parent
978d0716e0
commit
34f2f8b936
3 changed files with 19 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue