mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-21 03:35:15 +01:00
Remove constand BATCH_SIZE from SharedItemsViewModel
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
6a27dc7dba
commit
36769e4fbe
@ -9,7 +9,6 @@ import com.nextcloud.talk.application.NextcloudTalkApplication.Companion.sharedA
|
|||||||
import com.nextcloud.talk.models.database.UserEntity
|
import com.nextcloud.talk.models.database.UserEntity
|
||||||
import com.nextcloud.talk.models.json.chat.ChatShareOverall
|
import com.nextcloud.talk.models.json.chat.ChatShareOverall
|
||||||
import com.nextcloud.talk.utils.ApiUtils
|
import com.nextcloud.talk.utils.ApiUtils
|
||||||
import com.nextcloud.talk.viewmodels.SharedItemsViewModel
|
|
||||||
import io.reactivex.Observable
|
import io.reactivex.Observable
|
||||||
import retrofit2.Response
|
import retrofit2.Response
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
@ -82,7 +81,7 @@ class SharedItemsRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val sortedMutableItems = items.toSortedMap().values.toList().reversed().toMutableList()
|
val sortedMutableItems = items.toSortedMap().values.toList().reversed().toMutableList()
|
||||||
val moreItemsExisting = items.count() == SharedItemsViewModel.BATCH_SIZE
|
val moreItemsExisting = items.count() == BATCH_SIZE
|
||||||
|
|
||||||
return SharedMediaItems(
|
return SharedMediaItems(
|
||||||
type,
|
type,
|
||||||
|
@ -138,6 +138,5 @@ class SharedItemsViewModel(
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val TAG = SharedItemsViewModel::class.simpleName
|
private val TAG = SharedItemsViewModel::class.simpleName
|
||||||
const val BATCH_SIZE: Int = 28
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user