Minor bug in F-Droid variant (#2373)

This commit is contained in:
Imran Remtulla
2025-08-01 12:09:03 -04:00
parent 6495987248
commit 93380f4229

View File

@@ -1121,6 +1121,7 @@ class AppsProvider with ChangeNotifier {
obtainiumId,
strB: obtainiumTempId,
);
appsToInstall = moveStrToEnd(appsToInstall, '$obtainiumId.fdroid');
Future<void> installFn(
String id,
@@ -2511,7 +2512,10 @@ Future<void> bgUpdateCheck(String taskId, Map<String, dynamic>? params) async {
}
}
if (toInstall.isNotEmpty) {
var tempObtArr = toInstall.where((element) => element.key == obtainiumId);
var tempObtArr = toInstall.where(
(element) =>
element.key == obtainiumId || element.key == '$obtainiumId.fdroid',
);
if (tempObtArr.isNotEmpty) {
// Move obtainium to the end of the list as it must always install last
var obt = tempObtArr.first;