Fixed conversation opened upon rotating the device after clicking on message notification

This commit is contained in:
Sylvain Berfini 2024-06-12 10:46:41 +02:00
parent 058a88424c
commit 5e727b4e42

View file

@ -284,12 +284,10 @@ class MainActivity : GenericActivity() {
goToLatestVisitedFragment()
if (intent != null) {
Log.d("$TAG Post create intent not null, handling it")
// We don't want that intent to be handled upon rotation
if (savedInstanceState == null && intent != null) {
Log.d("$TAG savedInstanceState is null but intent isn't, handling it")
handleIntent(intent)
} else {
// This should never happen!
Log.e("$TAG onPostCreate called without intent !")
}
}