From 95e1e574071ae76d38ea1f70f8c1418543fef549 Mon Sep 17 00:00:00 2001 From: Shaka Huang Date: Fri, 30 Apr 2021 19:41:46 +0800 Subject: [PATCH] Fix #4140 --- .../com/topjohnwu/magisk/events/dialog/UninstallDialog.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/events/dialog/UninstallDialog.kt b/app/src/main/java/com/topjohnwu/magisk/events/dialog/UninstallDialog.kt index 62bdfacaa..0f6957033 100644 --- a/app/src/main/java/com/topjohnwu/magisk/events/dialog/UninstallDialog.kt +++ b/app/src/main/java/com/topjohnwu/magisk/events/dialog/UninstallDialog.kt @@ -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()) } }