Given foregrounded, when I swipe up from the very bottom of the screen:
- Android 10 (Nokia 6.1), 11 (Pixel 4): onStop() is called.
- Android 12 (Pixel 3): onStop() is not called.
Then, if you drag/swipe an app screen up to dismiss (or destroy) it:
- Android 10 (Nokia 6.1), 11 (Pixel 4): onDestroy() is called.
- Android 12 (Pixel 3): onStop() and onDestroy() are called consecutively.
compileSdk 31 minSdk 26 targetSdk 31
I have looked into https://developer.android.com/about/versions/12/behavior-changes-all, this behaviour is not documented there.
Is this an expected thing in Android 12? It's quite annoying as it changes the lifecycle behaviours of the app and its activities/fragments/coroutines...