From e475893fd750a1f1ac85e06e089e8f3741c27e22 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 16 Sep 2016 04:42:51 +0800 Subject: [PATCH 1/2] Change su path --- app/src/main/java/com/topjohnwu/magisk/RootFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/RootFragment.java b/app/src/main/java/com/topjohnwu/magisk/RootFragment.java index 19ca32189..afbee15da 100644 --- a/app/src/main/java/com/topjohnwu/magisk/RootFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/RootFragment.java @@ -153,7 +153,7 @@ public class RootFragment extends Fragment { break; case 1: // Proper root - if (new File("/system/xbin/su").exists()) { + if (new File("/magisk/.core/bin/su").exists()) { // Mounted rootStatusContainer.setBackgroundColor(accent); rootStatusIcon.setImageResource(statusError); From f96865c2cb4c66cc2e676e765f1bae18113eb279 Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Thu, 15 Sep 2016 15:47:23 -0500 Subject: [PATCH 2/2] Remove unneeded lines --- app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java b/app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java index 26f136e66..b9b86ca78 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java +++ b/app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java @@ -120,10 +120,7 @@ public class ReposAdapter extends RecyclerView.Adapter 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")) { + if (prefs.contains("ignoreUpdateAlerts")) { ignoreAlertUpdate = prefs.getBoolean("ignoreUpdateAlerts",false); } mHolder.installedStatus.setText(repo.isInstalled() ? this.context.getResources().getString(R.string.module_installed) : this.context.getResources().getString(R.string.module_not_installed));