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