Fixed orientation change bug with app shortcuts

https://github.com/kabouzeid/Phonograph/issues/78#issuecomment-285512114
This commit is contained in:
Adrian Campos 2017-03-09 17:10:23 -08:00 committed by Karim Abou Zeid
commit 978d0716e0

View file

@ -313,6 +313,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
//Start the songs, setting the shuffle mode to shuffle
MusicPlayerRemote.openAndShuffleQueue(songs, true);
handled = true;
} else if (intent.getAction() != null && intent.getAction().equals(MainActivity.INTENT_ACTION_MEDIA_PLAY)){
//Shuffle songs in extras
@ -324,6 +325,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
} else {
MusicPlayerRemote.openQueue(songs, 0, true);
}
handled = true;
}
if (uri != null && uri.toString().length() > 0) {