Made ThreadActivity launch in singleTop mode and added onNewIntent.

This commit is contained in:
Ryan Mullin 2023-04-25 18:14:24 -07:00
parent 66c8b21cce
commit 41083ef754
2 changed files with 8 additions and 1 deletions

View File

@ -55,7 +55,8 @@
android:configChanges="orientation"
android:exported="false"
android:parentActivityName=".activities.MainActivity"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTop" />
<activity
android:name=".activities.NewConversationActivity"

View File

@ -108,6 +108,12 @@ class ThreadActivity : SimpleActivity() {
private var isAttachmentPickerVisible = false
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
finish()
startActivity(intent)
}
override fun onCreate(savedInstanceState: Bundle?) {
isMaterialActivity = true
super.onCreate(savedInstanceState)