mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-25 20:03:44 +02:00
@@ -28,6 +28,7 @@ class _GeneratedFormModalState extends State<GeneratedFormModal> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
values = widget.defaultValues;
|
||||||
valid = widget.initValid;
|
valid = widget.initValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -362,10 +362,8 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
);
|
);
|
||||||
}).then((values) {
|
}).then((values) {
|
||||||
if (values != null) {
|
if (values != null) {
|
||||||
bool shouldInstallUpdates =
|
bool shouldInstallUpdates = values[0] == 'true';
|
||||||
values.isEmpty || values[0] == 'true';
|
bool shouldInstallNew = values[1] == 'true';
|
||||||
bool shouldInstallNew = values.isEmpty ||
|
|
||||||
(values.length >= 2 && values[1] == 'true');
|
|
||||||
settingsProvider
|
settingsProvider
|
||||||
.getInstallPermission()
|
.getInstallPermission()
|
||||||
.then((_) {
|
.then((_) {
|
||||||
|
|||||||
@@ -70,8 +70,9 @@ class AppsProvider with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadApk(String apkUrl, String fileName, Function? onProgress,
|
downloadApk(String apkUrl, String fileName, Function? onProgress,
|
||||||
Function? urlModifier,
|
Function? urlModifier) async {
|
||||||
{bool useExistingIfExists = true}) async {
|
bool useExistingIfExists =
|
||||||
|
false; // This should be an function argument, but isn't because of the partially downloaded APK issue
|
||||||
var destDir = (await getExternalStorageDirectory())!.path;
|
var destDir = (await getExternalStorageDirectory())!.path;
|
||||||
if (urlModifier != null) {
|
if (urlModifier != null) {
|
||||||
apkUrl = await urlModifier(apkUrl);
|
apkUrl = await urlModifier(apkUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user