Unlock scheduled tab, show pending scheduled messages

This commit is contained in:
Moez Bhatti
2018-06-26 22:36:28 -04:00
parent 272f4bceb9
commit 61c8ca17e8
9 changed files with 163 additions and 10 deletions
@@ -18,6 +18,12 @@ abstract class QkRealmAdapter<T : RealmModel> : RealmRecyclerViewAdapter<T, QkVi
* based on the data
*/
var emptyView: View? = null
set(value) {
if (field === value) return
field = value
value?.setVisible(data?.isLoaded == true && data?.isEmpty() == true)
}
private val emptyListener: (OrderedRealmCollection<T>) -> Unit = { data ->
emptyView?.setVisible(data.isLoaded && data.isEmpty())