Commit 95e1e574 authored by Shaka Huang's avatar Shaka Huang Committed by John Wu

Fix #4140

parent 93ba4cca
......@@ -3,6 +3,7 @@ package com.topjohnwu.magisk.events.dialog
import android.app.ProgressDialog
import android.widget.Toast
import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.arch.BaseUIActivity
import com.topjohnwu.magisk.ui.flash.FlashFragment
import com.topjohnwu.magisk.utils.Utils
import com.topjohnwu.magisk.view.MagiskDialog
......@@ -41,7 +42,8 @@ class UninstallDialog : DialogEvent() {
}
private fun completeUninstall() {
FlashFragment.uninstall()
(dialog.ownerActivity as? BaseUIActivity<*, *>)
?.navigation?.navigate(FlashFragment.uninstall())
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment