mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-16 05:51:15 +01:00
Fix issue where if termux installer failed with an exception after prefix directory was already created, then try again would load a broken environment.
This commit is contained in:
parent
e119d34bca
commit
19c690d02b
1 changed files with 1 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ final class TermuxInstaller {
|
||||||
activity.finish();
|
activity.finish();
|
||||||
}).setPositiveButton(R.string.bootstrap_error_try_again, (dialog, which) -> {
|
}).setPositiveButton(R.string.bootstrap_error_try_again, (dialog, which) -> {
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
|
FileUtils.deleteFile(activity, "prefix directory", PREFIX_FILE_PATH, true);
|
||||||
TermuxInstaller.setupBootstrapIfNeeded(activity, whenDone);
|
TermuxInstaller.setupBootstrapIfNeeded(activity, whenDone);
|
||||||
}).show();
|
}).show();
|
||||||
} catch (WindowManager.BadTokenException e1) {
|
} catch (WindowManager.BadTokenException e1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue