Fix #517 and a few more crashes
This commit is contained in:
@@ -71,7 +71,7 @@ class SettingsAdvancedFragment : SettingsFragment() {
|
||||
private fun clearChapterCache() {
|
||||
val deletedFiles = AtomicInteger()
|
||||
|
||||
val files = chapterCache.cacheDir.listFiles()
|
||||
val files = chapterCache.cacheDir.listFiles() ?: return
|
||||
|
||||
val dialog = MaterialDialog.Builder(activity)
|
||||
.title(R.string.deleting)
|
||||
|
||||
Reference in New Issue
Block a user