Need to check and change the autoRoot state in fragment on UI Refresh
This commit is contained in:
parent
766a26128d
commit
b1ef9361f3
@ -220,6 +220,7 @@ public class RootFragment extends Fragment implements Receiver {
|
|||||||
protected void onPostExecute(Void v) {
|
protected void onPostExecute(Void v) {
|
||||||
super.onPostExecute(v);
|
super.onPostExecute(v);
|
||||||
|
|
||||||
|
autoRootToggle.setChecked(autoRootStatus);
|
||||||
progressBar.setVisibility(View.GONE);
|
progressBar.setVisibility(View.GONE);
|
||||||
|
|
||||||
rootStatusView.setVisibility(View.VISIBLE);
|
rootStatusView.setVisibility(View.VISIBLE);
|
||||||
@ -291,6 +292,7 @@ public class RootFragment extends Fragment implements Receiver {
|
|||||||
rootStatus.setTextColor(green500);
|
rootStatus.setTextColor(green500);
|
||||||
rootStatus.setText(R.string.root_auto_unmounted);
|
rootStatus.setText(R.string.root_auto_unmounted);
|
||||||
rootToggle.setEnabled(false);
|
rootToggle.setEnabled(false);
|
||||||
|
autoRootToggle.setChecked(true);
|
||||||
safetyNetStatusIcon.setImageResource(statusOK);
|
safetyNetStatusIcon.setImageResource(statusOK);
|
||||||
safetyNetStatus.setText(R.string.root_auto_unmounted_info);
|
safetyNetStatus.setText(R.string.root_auto_unmounted_info);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user