Fix app crashing

This commit is contained in:
tom5079
2021-06-12 16:02:38 +09:00
parent 02c17c3b75
commit 9c7320c0a0
3 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ class MainActivity :
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R &&
!Preferences["download_folder_ignore_warning", false] &&
ContextCompat.getExternalFilesDirs(this, null).map { Uri.fromFile(it).toString() }
ContextCompat.getExternalFilesDirs(this, null).filterNotNull().map { Uri.fromFile(it).toString() }
.contains(Preferences["download_folder", ""])
) {
AlertDialog.Builder(this)