|
@@ -59,19 +59,19 @@ class HomeViewModel : BaseViewModel() {
|
|
|
|
|
|
private var totalLocalSize = 0
|
|
|
private var startSize = 0
|
|
|
- private var endSize = 11
|
|
|
+ private var endSize = 12
|
|
|
|
|
|
private var totalSearchLocalSize = 0
|
|
|
private var searchLocalSize = 0
|
|
|
private var foodSize = 0
|
|
|
private var startSearchSize = 0
|
|
|
- private var endSearchSize = 11
|
|
|
+ private var endSearchSize = 12
|
|
|
|
|
|
private var startRecipesSearchSize = 0
|
|
|
- private var endRecipesSearchSize = 11
|
|
|
+ private var endRecipesSearchSize = 12
|
|
|
|
|
|
private var startFoodSearchSize = 0
|
|
|
- private var endFoodSearchSize = 11
|
|
|
+ private var endFoodSearchSize = 12
|
|
|
|
|
|
private var lastLocalRecipesShowList = mutableListOf<Any>()
|
|
|
private var hasMoreLocal = false
|
|
@@ -103,7 +103,7 @@ class HomeViewModel : BaseViewModel() {
|
|
|
fun queryLocalRecipes(categoryNum: String) {
|
|
|
scope(Dispatchers.IO) {
|
|
|
startSize = 0
|
|
|
- endSize = 11
|
|
|
+ endSize = 12
|
|
|
localFavoriteRecipesList =
|
|
|
FoodDataProvider.getUserDatabase().userInfoDao().queryFavoriteRecipes(userId)
|
|
|
.toMutableList()
|
|
@@ -237,11 +237,11 @@ class HomeViewModel : BaseViewModel() {
|
|
|
val homeHeader = HomeHeader()
|
|
|
homeHeader.filterSortModel = FilterSortModel("")
|
|
|
startSearchSize = 0
|
|
|
- endSearchSize = 11
|
|
|
+ endSearchSize = 12
|
|
|
startFoodSearchSize = 0
|
|
|
- endFoodSearchSize = 11
|
|
|
+ endFoodSearchSize = 12
|
|
|
startRecipesSearchSize = 0
|
|
|
- endRecipesSearchSize = 11
|
|
|
+ endRecipesSearchSize = 12
|
|
|
totalSearchLocalRecipes.clear()
|
|
|
searchLocalRecipes.clear()
|
|
|
searchLocalFood.clear()
|