make activity at fillItems nullable

This commit is contained in:
tibbi committed 2017-03-28 22:32:36 +02:00
1 parent b11cf0a525
commit d2ecebba24
1 file changed
+1 -1
@@ -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