mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Fix toast
This commit is contained in:
parent
d3ade06421
commit
afcc60066e
@ -77,7 +77,6 @@ public class DownloadActivity extends Activity {
|
|||||||
|
|
||||||
private void error(Throwable e) {
|
private void error(Throwable e) {
|
||||||
Log.e(getClass().getSimpleName(), "", e);
|
Log.e(getClass().getSimpleName(), "", e);
|
||||||
Toast.makeText(themed, e.getMessage(), Toast.LENGTH_LONG).show();
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +119,7 @@ public class DownloadActivity extends Activity {
|
|||||||
request(apkLink).setExecutor(AsyncTask.THREAD_POOL_EXECUTOR).getAsFile(apk, file -> {
|
request(apkLink).setExecutor(AsyncTask.THREAD_POOL_EXECUTOR).getAsFile(apk, file -> {
|
||||||
if (dynLoad) {
|
if (dynLoad) {
|
||||||
DynLoad.setup(this);
|
DynLoad.setup(this);
|
||||||
onSuccess.run();
|
runOnUiThread(onSuccess);
|
||||||
} else {
|
} else {
|
||||||
var receiver = APKInstall.register(this, BuildConfig.APPLICATION_ID, onSuccess);
|
var receiver = APKInstall.register(this, BuildConfig.APPLICATION_ID, onSuccess);
|
||||||
APKInstall.installapk(this, file);
|
APKInstall.installapk(this, file);
|
||||||
|
Loading…
Reference in New Issue
Block a user