mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Fixed launching activities on newer systems
This commit is contained in:
parent
fbac6bcfd0
commit
5875ced367
@ -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) =
|
||||||
|
Loading…
Reference in New Issue
Block a user