mirror of
https://github.com/FossifyOrg/Messages.git
synced 2026-06-17 21:11:05 -04:00
Merge pull request #642 from rmullin7286/master
Made ThreadActivity launch in singleTop mode and added onNewIntent.
This commit is contained in:
@@ -56,7 +56,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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user