Need to check and change the autoRoot state in fragment on UI Refresh

This commit is contained in:
d8ahazard 2016-09-24 08:07:20 -05:00
parent 766a26128d
commit b1ef9361f3

View File

@ -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;