I'm writing paged list adapter that I update with diff utils.
As data I'm using bluetoot devices using this library https://github.com/OmarAflak/Bluetooth-Library
The problem is when I want to create LivePagedListBuilder
This is the error message https://imgur.com/xP3ffI9
fun getPairedDevices(): LiveData<PagedList<BluetoothDevice>> {
if (devices == null){
bluetooth.onStart()
if (bluetooth.isEnabled){
val pairedDevices = (bluetooth.pairedDevices)
//There is a problem in this line
devices = LivePagedListBuilder(pairedDevices, Paging.config).build()
}
}
return devices!!
}
Przepraszam, że po angielsku ale wrzucałem jeszcze na inne forum.
Jeżeli łamie to regulamin to proszę tylko powiadomić mnie o tym.