~evilham/unchat-android

7b969ebd749a701c263a106926bd0a4512548c74 — Benoit Marty 2 years ago 163f4cf
Ensure the Activity is destroyed, it seems that the intent flags are not enough now. - finish all
1 files changed, 2 insertions(+), 2 deletions(-)

M vector/src/main/java/im/vector/app/features/MainActivity.kt
M vector/src/main/java/im/vector/app/features/MainActivity.kt => vector/src/main/java/im/vector/app/features/MainActivity.kt +2 -2
@@ 78,8 78,8 @@ class MainActivity : VectorBaseActivity(), UnlockedActivity {

            intent.putExtra(EXTRA_ARGS, args)
            activity.startActivity(intent)
            // Ensure the Activity is destroyed, it seems that the intent flags are not enough now.
            activity.finish()
            // Ensure all the Activities are destroyed, it seems that the intent flags are not enough now.
            activity.finishAffinity()
        }
    }