This commit is contained in:
qimiko committed 2024-06-21 16:17:54 -07:00
1 parent 759ee4afd7
commit 3661df2667
1 file changed
+4 -1
@@ -44,7 +44,8 @@ import java.net.UnknownHostException
fun clearDownloadedApks(context: Context) {
// technically we should be using the activity results but it was too inconsistent for my liking
val performCleanup = PreferenceUtils.get(context).getBoolean(PreferenceUtils.Key.CLEANUP_APKS)
val preferenceUtils = PreferenceUtils.get(context)
val performCleanup = preferenceUtils.getBoolean(PreferenceUtils.Key.CLEANUP_APKS)
if (!performCleanup) {
return
}
@@ -57,6 +58,8 @@ fun clearDownloadedApks(context: Context) {
}?.forEach {
it.delete()
}
preferenceUtils.setBoolean(PreferenceUtils.Key.CLEANUP_APKS, false)
}
fun generateInstallIntent(uri: Uri): Intent {