From 685c5a61fdec1f7d58dc664040c5d4dfabe9e187 Mon Sep 17 00:00:00 2001 From: X1nto Date: Thu, 2 Jul 2020 17:41:55 +0400 Subject: [PATCH] fixed root dialog showing twice when user switches to root mode --- app/src/main/java/com/vanced/manager/core/fragments/Home.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/vanced/manager/core/fragments/Home.kt b/app/src/main/java/com/vanced/manager/core/fragments/Home.kt index 4133b60c..37ff17d2 100644 --- a/app/src/main/java/com/vanced/manager/core/fragments/Home.kt +++ b/app/src/main/java/com/vanced/manager/core/fragments/Home.kt @@ -105,7 +105,6 @@ open class Home : BaseFragment(), View.OnClickListener { R.id.root_switch -> if (Shell.rootAccess()) { writeToVariantPref("root", R.anim.slide_in_right, R.anim.slide_out_left) - activity?.let { showRootDialog(it) } } else { writeToVariantPref("nonroot", R.anim.slide_in_left, R.anim.slide_out_right)