-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] 필터뷰 api 연동 #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 부탁~ 수고했다 지현아~~ 🥐💝 진짜 필터뷰 너무 수고했다~
@@ -39,4 +44,8 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main | |||
replace<T>(R.id.fcv_home_container, T::class.java.canonicalName) | |||
} | |||
} | |||
|
|||
companion object { | |||
const val FRAGMENT = "fragment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const val FRAGMENT = "fragment" | |
const val MYPAGE_FRAGMENT = "MyPageFragment" |
|
||
companion object { | ||
const val FILTER_INFO = "filterInfo" | ||
const val FRAGMENT = "fragment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 명확하게 명시티비 부탁
@@ -44,12 +53,23 @@ class FilterActivity : BindingActivity<ActivityFilterBinding>(R.layout.activity_ | |||
binding.btnFilterNext.setOnClickListener { | |||
when (binding.vpFilterContainer.currentItem) { | |||
2 -> { | |||
startActivity(Intent(this, WelcomeActivity::class.java)) | |||
viewModel.setFilter() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setUserFilter
val intent = Intent(this, MainActivity::class.java) | ||
intent.putExtra(FRAGMENT, FRAGMENT) | ||
startActivity(intent) | ||
} | ||
} | ||
|
||
else -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굳
private val _selectedFilterState = MutableStateFlow<UiState<SelectedFilter>>(UiState.Loading) | ||
val selectedFilterState get() = _selectedFilterState.asStateFlow() | ||
|
||
private val _previousState = MutableStateFlow<String?>(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private val _previousState = MutableStateFlow<String?>(null) | |
private val _previousActivityName = MutableStateFlow<String?>(null) |
_previousState.value = filterInfoTypeName | ||
} | ||
|
||
fun setFilter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun setFilter() { | |
fun setUserFilter() { |
val currentPageRes: Int, | ||
val maxPageRes: Int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey Res 지워주세용~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘했다 ~
Related issue 🛠
Work Description ✏️
Screenshot 📸
device-2023-07-20-221144.mp4
Screen_Recording_20230720_230710.1.mp4
Uncompleted Tasks 😅
To Reviewers 📢