|
|
|
|
@ -4,6 +4,7 @@ import android.os.Bundle |
|
|
|
|
import android.view.LayoutInflater |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import androidx.core.view.isVisible |
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
import io.realm.Realm |
|
|
|
|
import io.realm.RealmResults |
|
|
|
|
@ -43,6 +44,7 @@ class DataListFragment : PokerAnalyticsFragment(), LiveRowRepresentableDataSourc |
|
|
|
|
override fun onResume() { |
|
|
|
|
super.onResume() |
|
|
|
|
this.recyclerView?.adapter?.notifyDataSetChanged() |
|
|
|
|
noDataFound.isVisible = items.isEmpty() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun rowRepresentableForPosition(position: Int): RowRepresentable? { |
|
|
|
|
@ -119,14 +121,7 @@ class DataListFragment : PokerAnalyticsFragment(), LiveRowRepresentableDataSourc |
|
|
|
|
|
|
|
|
|
this.dataType.relatedResultsRepresentable?.let { |
|
|
|
|
this.items = it.items(realm) |
|
|
|
|
/* |
|
|
|
|
this.items.addChangeListener { newItems -> |
|
|
|
|
Timber.d("addChangeListener: $newItems") |
|
|
|
|
Timber.d("addChangeListener: ${this.recyclerView}") |
|
|
|
|
Timber.d("addChangeListener: ${this}") |
|
|
|
|
this.recyclerView?.adapter?.notifyDataSetChanged() |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
noDataFound.isVisible = this.items.isEmpty() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |