Skip to content

Commit 1bf5bb6

Browse files
fix: unexpected activity recreate causing weird black screen issue
1 parent 6d159b7 commit 1bf5bb6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

android/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@
4949
android:name="project.pipepipe.app.MainActivity"
5050
android:exported="true"
5151
android:theme="@style/Theme.PipePipe"
52-
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
53-
android:supportsPictureInPicture="true">
52+
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|smallestScreenSize|density|layoutDirection|uiMode"
53+
android:resizeableActivity="true"
54+
android:supportsPictureInPicture="true"
55+
android:launchMode="singleTask">
5456
<intent-filter>
5557
<action android:name="android.intent.action.MAIN" />
5658

android/src/main/kotlin/project/pipepipe/app/service/PlaybackService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class PlaybackService : MediaLibraryService() {
565565

566566
private fun buildSessionActivity(): PendingIntent {
567567
val intent = Intent(this, Class.forName("project.pipepipe.app.MainActivity"))
568-
intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP
568+
intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_NEW_TASK
569569
intent.putExtra("open_play_queue", true)
570570
return PendingIntent.getActivity(
571571
this,

0 commit comments

Comments
 (0)