mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
Bugfix in moveObtainiumToStart
This commit is contained in:
@@ -310,10 +310,12 @@ class AppsProvider with ChangeNotifier {
|
||||
|
||||
// If Obtainium is being installed, it should be the last one
|
||||
List<DownloadedApk> moveObtainiumToStart(List<DownloadedApk> items) {
|
||||
String obtainiumId = 'imranr98_obtainium_${GitHub().host}';
|
||||
String obtainiumIdA = 'imranr98_obtainium_${GitHub().host}';
|
||||
String obtainiumIdB = 'dev.imranr.obtainium';
|
||||
DownloadedApk? temp;
|
||||
items.removeWhere((element) {
|
||||
bool res = element.appId == obtainiumId;
|
||||
bool res =
|
||||
element.appId == obtainiumIdA || element.appId == obtainiumIdB;
|
||||
if (res) {
|
||||
temp = element;
|
||||
}
|
||||
|
Reference in New Issue
Block a user