-
Notifications
You must be signed in to change notification settings - Fork 3
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
[AN] 비회원 관리 #595
[AN] 비회원 관리 #595
Conversation
이제부터는 모든 바텀 버튼을 누르면 로그인 화면이 뜹니다.
…igongil into AN/feature/574-guest
…igongil into AN/feature/574-guest
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.
LGTM
@@ -27,8 +27,8 @@ class GuestViewModel @Inject constructor( | |||
private val _refreshState: MutableLiveData<Boolean> = MutableLiveData<Boolean>() | |||
val refreshState: LiveData<Boolean> get() = _refreshState | |||
|
|||
fun refresh() { | |||
_refreshState.value = true | |||
fun refresh(isRefreshed: Boolean) { |
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.
조금 더 구체적으로 명시하면 좋을 것 같아용
@@ -141,6 +147,13 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main | |||
} | |||
} | |||
|
|||
private fun showLoginBottomSheetDialog() { | |||
LoginBottomSheetFragment().show( |
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.
얘는 매번 생성안하고 한번만 생성해도 되지 않나요? 진짜궁금
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.
엇 그렇네요.
굳이 안해줘도 되네요.
인스턴스 한번만 생성하게 바꿨습니다 ~
@@ -256,6 +254,9 @@ class StudyListFragment : | |||
studyListViewModel.updateIsGuest(mainViewModel.isGuest) | |||
val filter = getStudyListFilter(group) | |||
studyListViewModel.loadFilteredPage(filter) | |||
if (mainViewModel.isGuest and filter.isGuestOnly()) { |
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.
오 ㅋ and 연산자쓰는사람 처음봄 mz하네요
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.
이런게 있었어?!
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.
요즘 python 많이 썻더니..
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.
고생하셨습니다 링링~
😋 작업한 내용
🙏 PR Point
비회원 기능이라는 화면 표시 및 화면 클릭 시 로그인 바텀시트를 보여줌
비회원은 스터디 목록 화면만 볼 수 있음.
다른 바텀버튼을 클릭하염 로그인 바텀시트를 보여주고, 로그인 하지 않을 시 스터디 목록을 그대로 다시 보여줍니다.
혹시 이 방식이 별로라고 생각하면 다시 rollback 할 생각도 있으니 의견주세요.
👍 관련 이슈