Fix strange RTL white screen behavior.

This commit is contained in:
Alex Hart
2023-08-11 13:37:16 -03:00
parent 6ccfab4087
commit f293f88958

View File

@@ -77,8 +77,11 @@ open class ConversationActivity : PassphraseRequiredActivity(), VoiceNoteMediaCo
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
setIntent(intent)
replaceFragment()
// Note: We utilize this instead of 'replaceFragment' because there seems to be a bug
// in constraint-layout which mixes up insets when replacing the fragment via onNewIntent.
finish()
startActivity(intent)
}
@Suppress("DEPRECATION")