Update stub

This commit is contained in:
topjohnwu
2019-10-23 05:19:54 -04:00
parent 71136d7347
commit d010cb7e42
4 changed files with 11 additions and 11 deletions

View File

@@ -21,10 +21,8 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
public class DownloadActivity extends Activity {
static final String TAG = "MMStub";
private static final boolean IS_CANARY = BuildConfig.VERSION_NAME.contains("-");
private static final String URL = BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
"https://raw.githubusercontent.com/topjohnwu/magisk_files/" +
(IS_CANARY ? "canary/release.json" : "master/stable.json");
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/stable.json";
private String apkLink;
private ErrorHandler err = (conn, e) -> {
@@ -34,8 +32,9 @@ public class DownloadActivity extends Activity {
private void showDialog() {
ProgressDialog.show(this,
"Downloading...",
"Downloading Magisk Manager", true);
getString(R.string.dling),
getString(R.string.dling) + " " + getString(R.string.app_name),
true);
}
private void dlAPK() {