Fixed orientation change bug with app shortcuts
https://github.com/kabouzeid/Phonograph/issues/78#issuecomment-285512114
This commit is contained in:
parent
d422a05e8d
commit
978d0716e0
1 changed files with 2 additions and 0 deletions
|
|
@ -313,6 +313,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
||||||
|
|
||||||
//Start the songs, setting the shuffle mode to shuffle
|
//Start the songs, setting the shuffle mode to shuffle
|
||||||
MusicPlayerRemote.openAndShuffleQueue(songs, true);
|
MusicPlayerRemote.openAndShuffleQueue(songs, true);
|
||||||
|
handled = true;
|
||||||
|
|
||||||
} else if (intent.getAction() != null && intent.getAction().equals(MainActivity.INTENT_ACTION_MEDIA_PLAY)){
|
} else if (intent.getAction() != null && intent.getAction().equals(MainActivity.INTENT_ACTION_MEDIA_PLAY)){
|
||||||
//Shuffle songs in extras
|
//Shuffle songs in extras
|
||||||
|
|
@ -324,6 +325,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
||||||
} else {
|
} else {
|
||||||
MusicPlayerRemote.openQueue(songs, 0, true);
|
MusicPlayerRemote.openQueue(songs, 0, true);
|
||||||
}
|
}
|
||||||
|
handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uri != null && uri.toString().length() > 0) {
|
if (uri != null && uri.toString().length() > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue