Created
September 22, 2019 13:10
-
-
Save Lzyct/60f9d61782d8f049b37d098fefb0ae68 to your computer and use it in GitHub Desktop.
Clear Activity Stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| startActivity(Intent(applicationContext, NextActivity::class.java).apply { | |
| flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment