APK extension bugfix (#595)

This commit is contained in:
Imran Remtulla
2023-06-02 20:48:32 -04:00
parent 6169915e63
commit f0e1831d30

View File

@@ -159,6 +159,9 @@ class AppsProvider with ChangeNotifier {
if (ext.endsWith('"') || ext.endsWith("other")) {
ext = ext.substring(0, ext.length - 1);
}
if (url.toLowerCase().endsWith('.apk') && ext != 'apk') {
ext = 'apk';
}
File downloadedFile = File('$destDir/$fileNameNoExt.$ext');
if (!(downloadedFile.existsSync() && useExisting)) {
File tempDownloadedFile = File('${downloadedFile.path}.part');