mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-04 07:13:28 +01:00 
			
		
		
		
	Bugfix in "download release assets" button (#1968)
This commit is contained in:
		@@ -1036,8 +1036,17 @@ class AppsProvider with ChangeNotifier {
 | 
			
		||||
      if (apps[id]!.app.apkUrls.isNotEmpty ||
 | 
			
		||||
          apps[id]!.app.otherAssetUrls.isNotEmpty) {
 | 
			
		||||
        // ignore: use_build_context_synchronously
 | 
			
		||||
        fileUrl = await confirmAppFileUrl(apps[id]!.app, context, true,
 | 
			
		||||
        MapEntry<String, String>? tempFileUrl = await confirmAppFileUrl(
 | 
			
		||||
            apps[id]!.app, context, true,
 | 
			
		||||
            evenIfSingleChoice: true);
 | 
			
		||||
        if (tempFileUrl != null) {
 | 
			
		||||
          fileUrl = MapEntry(
 | 
			
		||||
              tempFileUrl.key,
 | 
			
		||||
              await (SourceProvider().getSource(apps[id]!.app.url,
 | 
			
		||||
                      overrideSource: apps[id]!.app.overrideSource))
 | 
			
		||||
                  .apkUrlPrefetchModifier(tempFileUrl.value, apps[id]!.app.url,
 | 
			
		||||
                      apps[id]!.app.additionalSettings));
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      if (fileUrl != null) {
 | 
			
		||||
        filesToDownload.add(MapEntry(fileUrl, apps[id]!.app));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user