chinwag-android/app
Konrad Pozniak dee1767ec1
fix MainActivity behavior (#4818)
This fixes two issues, but I tested them together to make sure this time
everything works as expected.

1) The fix in #4813 went into the right direction, but the condition was
a bit too broad. When sharing something to Tusky so that Tusky switches
accounts, sometimes nothing would happen.

2) fixes #4766. There are two possibilities here (I think it depends
mostly on API level):
2a) Sharing starts a new task. `android:maxRecents="1"` makes sure old
tasks disappear and are not left in the weird in-between state.
3a) Sharing starts a new `MainActivity` in an existing task.
`Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK` makes
sure old `MainActivity` instances are removed. On newer Android versions
this has the sideeffect of changing the switch animation, but whatever.

Basically this gives us the behavior I wanted to achieve with the
`android:launchMode="singleTask"` without the unintended side effects.
2024-12-21 20:34:54 +01:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase only check once for filters v2 availability (#4539) 2024-07-03 21:18:09 +02:00
src fix MainActivity behavior (#4818) 2024-12-21 20:34:54 +01:00
build.gradle prepare release 126 (#4713) 2024-12-07 08:48:54 +01:00
getGitSha.gradle Previous attempt to fix git sha on non-git build broke git build. (#3322) 2023-02-16 20:20:52 +01:00
lint-baseline.xml fix new warnings, regenerate lint-baseline.xml (#4684) 2024-09-16 20:57:27 +02:00
lint.xml Fix some warnings & recreate lint-baseline.xml (#4278) 2024-02-25 16:20:26 +01:00
proguard-rules.pro Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00