make activity at fillItems nullable

This commit is contained in:
tibbi 2017-03-28 22:32:36 +02:00
parent b11cf0a525
commit d2ecebba24

View File

@ -80,7 +80,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
newItems.sort()
fragmentView.apply {
activity.runOnUiThread {
activity?.runOnUiThread {
items_swipe_refresh.isRefreshing = false
if (newItems.hashCode() == mItems.hashCode()) {
return@runOnUiThread