diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/Async.java b/app/src/main/java/com/topjohnwu/magisk/utils/Async.java index 2784fe83e..402409339 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/Async.java +++ b/app/src/main/java/com/topjohnwu/magisk/utils/Async.java @@ -153,7 +153,7 @@ public class Async { protected void preProcessing() throws Throwable {} - protected void copyToCache() throws Throwable { + private void copyToCache() throws Throwable { try { InputStream in = mContext.getContentResolver().openInputStream(mUri); mCachedFile = new File(mContext.getCacheDir().getAbsolutePath() + "/install.zip"); @@ -250,14 +250,15 @@ public class Async { Toast.makeText(mContext, mContext.getString(R.string.invalid_zip), Toast.LENGTH_LONG).show(); break; case 1: - done(); + onSuccess(); break; } } - protected void done() { + protected void onSuccess() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); - prefs.edit().putBoolean("module_done", false).putBoolean("update_check_done", true).apply(); + + StatusFragment.updateCheckDone.trigger(); new LoadModules().exec(); AlertDialog.Builder builder; diff --git a/app/src/main/res/layout/install_fragment.xml b/app/src/main/res/layout/install_fragment.xml index 4b91fe2f0..7e98e10f3 100644 --- a/app/src/main/res/layout/install_fragment.xml +++ b/app/src/main/res/layout/install_fragment.xml @@ -137,6 +137,66 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ee3b8b446..a44c0d41d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -118,7 +118,7 @@ Reboot to apply settings - "(Auto Detect) %1$s" + "(Auto) %1$s" Boot Image Location Detect Advanced Settings