summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/AndroidManifest.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 4b58442..74d19ea 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -10,16 +10,26 @@
android:theme="@android:style/Theme.DeviceDefault.DayNight"
android:allowBackup="false">
+ <!--
+ Each popup activity below gets its own distinct taskAffinity, separate from the
+ app's default (shared with SettingsActivity). Without this, FLAG_ACTIVITY_NEW_TASK
+ reuses an existing task with matching affinity instead of creating a fresh one,
+ so if SettingsActivity's task was still alive in recents, these translucent popups
+ would render on top of it instead of the home screen behind them.
+ -->
+
<!-- Task detail bottom sheet (opened by widget task taps) -->
<activity
android:name=".ui.TaskDetailActivity"
android:theme="@style/Theme.TaskDetail"
+ android:taskAffinity="${applicationId}.taskdetail"
android:exported="false" />
<!-- Quick-add bottom sheet (opened by widget "+" button) -->
<activity
android:name=".ui.QuickAddActivity"
android:theme="@style/Theme.TaskDetail"
+ android:taskAffinity="${applicationId}.quickadd"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
@@ -27,6 +37,7 @@
<activity
android:name=".ui.EventDetailActivity"
android:theme="@style/Theme.TaskDetail"
+ android:taskAffinity="${applicationId}.eventdetail"
android:exported="false" />
<!-- Settings activity (also the widget config screen) -->