mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
adding an extra flag at pressing top Back from conversation
This commit is contained in:
@@ -175,8 +175,10 @@ class ThreadActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun onHomePressed() {
|
||||
val intent = Intent(this, MainActivity::class.java)
|
||||
startActivity(intent)
|
||||
Intent(this, MainActivity::class.java).apply {
|
||||
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
||||
startActivity(this)
|
||||
}
|
||||
finish()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user