mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 06:55:42 +03: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
2 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -138,6 +138,5 @@ class SharedItemsViewModel(
|
|||
|
||||
companion object {
|
||||
private val TAG = SharedItemsViewModel::class.simpleName
|
||||
const val BATCH_SIZE: Int = 28
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue