diff --git a/lib/main.dart b/lib/main.dart index 6931640..06d2e19 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,7 +14,7 @@ import 'package:workmanager/workmanager.dart'; import 'package:dynamic_color/dynamic_color.dart'; import 'package:device_info_plus/device_info_plus.dart'; -const String currentVersion = '0.6.3'; +const String currentVersion = '0.6.4'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/providers/apps_provider.dart b/lib/providers/apps_provider.dart index 1083568..7938d9c 100644 --- a/lib/providers/apps_provider.dart +++ b/lib/providers/apps_provider.dart @@ -302,7 +302,7 @@ class AppsProvider with ChangeNotifier { } // If Obtainium is being installed, it should be the last one - List moveObtainiumToEnd(List items) { + List moveObtainiumToStart(List items) { String obtainiumId = 'imranr98_obtainium_${GitHub().host}'; DownloadedApp? temp; items.removeWhere((element) { @@ -313,7 +313,7 @@ class AppsProvider with ChangeNotifier { return res; }); if (temp != null) { - items.add(temp!); + items = [temp!, ...items]; } return items; } @@ -321,8 +321,8 @@ class AppsProvider with ChangeNotifier { // TODO: Remove below line if silentupdates are ever figured out regularInstalls.addAll(silentUpdates); - silentUpdates = moveObtainiumToEnd(silentUpdates); - regularInstalls = moveObtainiumToEnd(regularInstalls); + silentUpdates = moveObtainiumToStart(silentUpdates); + regularInstalls = moveObtainiumToStart(regularInstalls); // TODO: Uncomment below if silentupdates are ever figured out // for (var u in silentUpdates) { diff --git a/pubspec.yaml b/pubspec.yaml index 217c71a..13be3ef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.6.3+47 # When changing this, update the tag in main() accordingly +version: 0.6.4+48 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'