Fixed launching activities on newer systems

This commit is contained in:
Viktor De Pasquale 2019-07-11 15:06:52 +02:00 committed by John Wu
parent fbac6bcfd0
commit 5875ced367

View File

@ -31,6 +31,7 @@ open class FlashActivity : MagiskActivity<FlashViewModel, ActivityFlashBinding>(
companion object { companion object {
private fun intent(context: Context) = Intent(context, ClassMap[FlashActivity::class.java]) 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 intent(context: Context, file: File) = intent(context).setData(file.toUri())
private fun flashType(isSecondSlot: Boolean) = private fun flashType(isSecondSlot: Boolean) =