|
@@ -173,7 +173,11 @@ class GuestPlaymateListViewModel : BaseViewModel() {
|
|
|
if (showBanner) {
|
|
if (showBanner) {
|
|
|
val bannerList = this@GuestPlaymateListViewModel.bannerList
|
|
val bannerList = this@GuestPlaymateListViewModel.bannerList
|
|
|
if (!bannerList.isNullOrEmpty()) {
|
|
if (!bannerList.isNullOrEmpty()) {
|
|
|
- itemList.add(1, PlaymateBannerItemData(bannerList))
|
|
|
|
|
|
|
+ if (itemList.size > 1) {
|
|
|
|
|
+ itemList.add(1, PlaymateBannerItemData(bannerList))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ itemList.add(PlaymateBannerItemData(bannerList))
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
listLD.send(itemList)
|
|
listLD.send(itemList)
|