Skip to content

Commit 29a746d

Browse files
committed
make ItemsAdapter at ItemsFragment nullable
1 parent e68052b commit 29a746d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
6767
val newColor = context!!.config.textColor
6868
if (storedTextColor != newColor) {
6969
storedItems = ArrayList()
70-
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
70+
(items_list.adapter as? ItemsAdapter)?.updateTextColor(newColor)
7171
mView.breadcrumbs.updateColor(newColor)
7272
storedTextColor = newColor
7373
}

0 commit comments

Comments
 (0)