diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-13 16:50:20 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 02:40:56 +0000 |
| commit | 5a8c63b336303a22f1e5f3598a961bc2ac21c7b1 (patch) | |
| tree | 740ab08b00b82edd6f2a491576cda0e7dec55ff4 /android/app | |
| parent | ac4d167568097af6aaadabd085ef9243dfd236df (diff) | |
fix(widget): give popup activities distinct taskAffinity
TaskDetailActivity, QuickAddActivity, and EventDetailActivity shared the
app's default task affinity with SettingsActivity. FLAG_ACTIVITY_NEW_TASK
reuses an existing task with matching affinity rather than creating a
fresh one, so if SettingsActivity's task was still alive in recents,
these translucent popups rendered on top of it instead of the home
screen behind them, as the theme's transparency was designed to show.
Diffstat (limited to 'android/app')
| -rw-r--r-- | android/app/src/main/AndroidManifest.xml | 11 |
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) --> |
