0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-26 13:12:59 +00:00

Merge pull request #42 from YTVanced/dev

fixed root dialog showing twice when user switches to root mode
This commit is contained in:
Paulis Gributs 2020-07-02 14:55:18 +01:00 committed by GitHub
commit 91dfb33cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,6 @@ open class Home : BaseFragment(), View.OnClickListener {
R.id.root_switch -> R.id.root_switch ->
if (Shell.rootAccess()) { if (Shell.rootAccess()) {
writeToVariantPref("root", R.anim.slide_in_right, R.anim.slide_out_left) writeToVariantPref("root", R.anim.slide_in_right, R.anim.slide_out_left)
activity?.let { showRootDialog(it) }
} }
else { else {
writeToVariantPref("nonroot", R.anim.slide_in_left, R.anim.slide_out_right) writeToVariantPref("nonroot", R.anim.slide_in_left, R.anim.slide_out_right)