mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
make ItemsAdapter at ItemsFragment nullable
This commit is contained in:
@ -67,7 +67,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
|||||||
val newColor = context!!.config.textColor
|
val newColor = context!!.config.textColor
|
||||||
if (storedTextColor != newColor) {
|
if (storedTextColor != newColor) {
|
||||||
storedItems = ArrayList()
|
storedItems = ArrayList()
|
||||||
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
|
(items_list.adapter as? ItemsAdapter)?.updateTextColor(newColor)
|
||||||
mView.breadcrumbs.updateColor(newColor)
|
mView.breadcrumbs.updateColor(newColor)
|
||||||
storedTextColor = newColor
|
storedTextColor = newColor
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user