Skip to content

Commit d2ecebb

Browse files
committed
make activity at fillItems nullable
1 parent b11cf0a commit d2ecebb

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
@@ -80,7 +80,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
8080
newItems.sort()
8181

8282
fragmentView.apply {
83-
activity.runOnUiThread {
83+
activity?.runOnUiThread {
8484
items_swipe_refresh.isRefreshing = false
8585
if (newItems.hashCode() == mItems.hashCode()) {
8686
return@runOnUiThread

0 commit comments

Comments
 (0)