Relaunch process without second process

This commit is contained in:
topjohnwu
2022-02-13 02:58:55 -08:00
parent 936ad1aa20
commit 8f0ea5925a
6 changed files with 20 additions and 60 deletions
@@ -109,7 +109,7 @@ public class DownloadActivity extends Activity {
dialog = ProgressDialog.show(themed, getString(dling), getString(dling) + " " + APP_NAME, true);
Runnable onSuccess = () -> {
dialog.dismiss();
PhoenixActivity.rebirth(this, InjectedClassLoader.PHOENIX);
StubApk.restartProcess(this);
finish();
};
// Download and upgrade the app