Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ buildscript {
}

extra.apply {
set("versionName", "4.1.1")
set("versionCode", 40101)
set("versionName", "4.1.2")
set("versionCode", 40102)
// 코인 버전 관리

set("versionBusinessName", "1.0.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class StoreActivity : KoinNavigationDrawerTimeActivity() {
@Inject
lateinit var onboardingManager: OnboardingManager

private var eventListSize by Delegates.notNull<Int>()
var eventListSize = -1

fun interface StoreCategoryFactory {
fun getCurrentCategory(): String
Expand Down Expand Up @@ -202,9 +202,8 @@ class StoreActivity : KoinNavigationDrawerTimeActivity() {
storeCategoriesAdapter.selectPosition =
intent.extras?.getInt(StoreActivityContract.STORE_CATEGORY)?.minus(2)

viewModel.setCategory(initStoreCategory!! + 1)
viewModel.setCategory(initStoreCategory)
storeCategoriesAdapter.initCategory(initStoreCategory)

}


Expand Down Expand Up @@ -553,6 +552,7 @@ class StoreActivity : KoinNavigationDrawerTimeActivity() {
binding.eventViewPager.setCurrentItem(1, false)
}
binding.eventViewPager.isGone = it.isNullOrEmpty()
binding.eventItemButton.isGone = it.isNullOrEmpty()
}

observeLiveData(viewModel.storeCategoryList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ class StoreViewModel @Inject constructor(
}

fun setCategory(categoryPosition: Int?) {
if(_categoryPosition.value == categoryPosition) {
if(categoryPosition == null || _categoryPosition.value == categoryPosition){
_categoryPosition.value = 0
_category.value = _storeCategoryList.value?.get(0)
} else {
}
else{
_categoryPosition.value = categoryPosition
_category.value = categoryPosition?.let { _storeCategoryList.value?.get(it) }
_category.value =_storeCategoryList.value?.get(categoryPosition)
}
}

Expand Down
1 change: 1 addition & 0 deletions koin/src/main/res/layout/store_activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
tools:listitem="@layout/store_event_card" />

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/event_item_button"
android:layout_width="80dp"
android:layout_height="24dp"
android:layout_marginEnd="28dp"
Expand Down