empêcher d'ouvrir plusieurs conversations dans le backstack
This commit is contained in:
parent
fc6d2fae7c
commit
bb14296c26
|
@ -86,6 +86,7 @@
|
|||
|
||||
<activity android:name=".ConversationActivity"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:launchMode="singleTop"
|
||||
android:parentActivityName=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package xyz.johnny.norntalk
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.os.AsyncTask
|
||||
import android.util.Log
|
||||
import android.view.ContextMenu
|
||||
|
@ -53,6 +54,12 @@ class ConversationActivity: ComposeView.SendActivity() {
|
|||
*/
|
||||
private val conversation get() = NornConversation.getConversation(_conversationId!!, this)
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
super.onNewIntent(intent)
|
||||
this.intent = intent
|
||||
this.initialize()
|
||||
}
|
||||
|
||||
override fun initialize() {
|
||||
// lorsque l'utilisateur lance la conversation par l'application Contacts
|
||||
if (this.intent.action != null) {
|
||||
|
|
Loading…
Reference in a new issue