mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
Update packages, increment version, run dart fix
This commit is contained in:
@@ -1230,7 +1230,7 @@ class AppsProvider with ChangeNotifier {
|
||||
|
||||
Future<MapEntry<int, bool>> import(String appsJSON) async {
|
||||
var decodedJSON = jsonDecode(appsJSON);
|
||||
var newFormat = !(decodedJSON is List);
|
||||
var newFormat = decodedJSON is! List;
|
||||
List<App> importedApps =
|
||||
((newFormat ? decodedJSON['apps'] : decodedJSON) as List<dynamic>)
|
||||
.map((e) => App.fromJson(e))
|
||||
|
Reference in New Issue
Block a user