From b1ef9361f3eb7667f821e51383285a93128d0dc4 Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Sat, 24 Sep 2016 08:07:20 -0500 Subject: [PATCH] Need to check and change the autoRoot state in fragment on UI Refresh --- app/src/main/java/com/topjohnwu/magisk/RootFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/RootFragment.java b/app/src/main/java/com/topjohnwu/magisk/RootFragment.java index df87e6104..89ebdeacc 100644 --- a/app/src/main/java/com/topjohnwu/magisk/RootFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/RootFragment.java @@ -220,6 +220,7 @@ public class RootFragment extends Fragment implements Receiver { protected void onPostExecute(Void v) { super.onPostExecute(v); + autoRootToggle.setChecked(autoRootStatus); progressBar.setVisibility(View.GONE); rootStatusView.setVisibility(View.VISIBLE); @@ -291,6 +292,7 @@ public class RootFragment extends Fragment implements Receiver { rootStatus.setTextColor(green500); rootStatus.setText(R.string.root_auto_unmounted); rootToggle.setEnabled(false); + autoRootToggle.setChecked(true); safetyNetStatusIcon.setImageResource(statusOK); safetyNetStatus.setText(R.string.root_auto_unmounted_info); break;