Remove constand BATCH_SIZE from SharedItemsViewModel

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-05-10 15:48:23 +02:00
parent 6a27dc7dba
commit 36769e4fbe
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E
2 changed files with 1 additions and 3 deletions

View file

@ -9,7 +9,6 @@ import com.nextcloud.talk.application.NextcloudTalkApplication.Companion.sharedA
import com.nextcloud.talk.models.database.UserEntity
import com.nextcloud.talk.models.json.chat.ChatShareOverall
import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.viewmodels.SharedItemsViewModel
import io.reactivex.Observable
import retrofit2.Response
import java.util.Locale
@ -82,7 +81,7 @@ class SharedItemsRepository {
}
val sortedMutableItems = items.toSortedMap().values.toList().reversed().toMutableList()
val moreItemsExisting = items.count() == SharedItemsViewModel.BATCH_SIZE
val moreItemsExisting = items.count() == BATCH_SIZE
return SharedMediaItems(
type,

View file

@ -138,6 +138,5 @@ class SharedItemsViewModel(
companion object {
private val TAG = SharedItemsViewModel::class.simpleName
const val BATCH_SIZE: Int = 28
}
}