Commit 8d29b7b2 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

AudioPlayerActivity: always return to the MainActivity after stop is pressed

This ensures there's always the MainActivity somewhere in the back
stack (even when restarted from an external intent or notification).
parent fda7235a
......@@ -249,6 +249,9 @@ public class AudioPlayerActivity extends Activity implements IAudioPlayer {
public void onStopClick(View view) {
mAudioController.stop();
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
finish();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment