mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-12 01:50: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
|
// If Obtainium is being installed, it should be the last one
|
||||||
List<DownloadedApk> moveObtainiumToStart(List<DownloadedApk> items) {
|
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;
|
DownloadedApk? temp;
|
||||||
items.removeWhere((element) {
|
items.removeWhere((element) {
|
||||||
bool res = element.appId == obtainiumId;
|
bool res =
|
||||||
|
element.appId == obtainiumIdA || element.appId == obtainiumIdB;
|
||||||
if (res) {
|
if (res) {
|
||||||
temp = element;
|
temp = element;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user