From 29a746d15ee1482c531ab120b242eaa6189e1f6f Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 9 Nov 2017 20:44:18 +0100 Subject: [PATCH] make ItemsAdapter at ItemsFragment nullable --- .../simplemobiletools/filemanager/fragments/ItemsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index 4f1a8d1d..41ff4ae5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -67,7 +67,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum val newColor = context!!.config.textColor if (storedTextColor != newColor) { storedItems = ArrayList() - (items_list.adapter as ItemsAdapter).updateTextColor(newColor) + (items_list.adapter as? ItemsAdapter)?.updateTextColor(newColor) mView.breadcrumbs.updateColor(newColor) storedTextColor = newColor }