Merges, and stuff

This commit is contained in:
d8ahazard 2016-09-17 23:30:46 -05:00
commit 2abd0265c8
3 changed files with 23 additions and 26 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/local.properties
.idea/
/build
app/src/main/java/com/topjohnwu/magisk/RootFragment.java

View File

@ -120,9 +120,6 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
String logUrl = repo.getmLogUrl();
String supportUrl = repo.getmSupportUrl();
String donateUrl = repo.getmDonateUrl();
if (supportUrl.equals("")) mHolder.supportLink.setBackgroundColor(Color.GRAY);
if (logUrl.equals("")) mHolder.changeLog.setBackgroundColor(Color.GRAY);
if (donateUrl.equals("")) mHolder.authorLink.setBackgroundColor(Color.GRAY);
if (prefs.contains("ignoreUpdateAlerts")) {
ignoreAlertUpdate = prefs.getBoolean("ignoreUpdateAlerts",false);
}

View File

@ -236,7 +236,7 @@ public class RootFragment extends Fragment {
break;
} else {
rootToggle.setEnabled(true);
if (new File("/system/xbin/su").exists()) {
if (new File("/magisk/.core/bin/su").exists()) {
// Mounted
rootStatusContainer.setBackgroundColor(accent);
rootStatusIcon.setImageResource(statusError);
@ -257,7 +257,6 @@ public class RootFragment extends Fragment {
safetyNetStatus.setText(R.string.root_unmounted_info);
break;
}
}
case 2:
// Improper root