Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Fix leaving blank Activity on back stack.
Browse files Browse the repository at this point in the history
When you use the "Erase and Open" shortcut to open the app, the blank EraseAndOpenShortcutActivity should not remain on the back stack.
  • Loading branch information
NightlyNexus authored and mergify[bot] committed Apr 1, 2021
1 parent b07433e commit b8f190b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ class EraseAndOpenShortcutActivity : Activity() {
intent.action = MainActivity.ACTION_OPEN
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
startActivity(intent)

finish()
}
}

0 comments on commit b8f190b

Please sign in to comment.