Skip to content

Commit

Permalink
Fixed launching activities on newer systems
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse authored and topjohnwu committed Jul 20, 2019
1 parent fbac6bc commit 5875ced
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ open class FlashActivity : MagiskActivity<FlashViewModel, ActivityFlashBinding>(
companion object {

private fun intent(context: Context) = Intent(context, ClassMap[FlashActivity::class.java])
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
private fun intent(context: Context, file: File) = intent(context).setData(file.toUri())

private fun flashType(isSecondSlot: Boolean) =
Expand Down

0 comments on commit 5875ced

Please sign in to comment.