-
Notifications
You must be signed in to change notification settings - Fork 2
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
UI 이슈 수정 #64
UI 이슈 수정 #64
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ import androidx.navigation.fragment.findNavController | |
import com.bumptech.glide.Glide | ||
import com.google.android.material.tabs.TabLayoutMediator | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import kotlinx.coroutines.flow.collect | ||
import kotlinx.coroutines.flow.collectLatest | ||
import org.gdsc.domain.Empty | ||
import org.gdsc.presentation.R | ||
import org.gdsc.presentation.databinding.FragmentMyPageBinding | ||
|
@@ -105,8 +107,11 @@ class MyPageFragment : Fragment() { | |
private fun setCollapsingToolbarOffChangedCallback() { | ||
binding.appBarLayout.addOnOffsetChangedListener { _, verticalOffset -> | ||
if (verticalOffset == -binding.collapsingToolbar.height) { | ||
// TODO: User Nickname From ViewModel | ||
setToolbarTitle(viewModel.nicknameState.value) | ||
repeatWhenUiStarted { | ||
viewModel.nicknameState.collectLatest { | ||
setToolbarTitle(it) | ||
} | ||
} | ||
Comment on lines
+110
to
+114
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. nickName 없어도 적용하려다가 크래시 나는 부분이에욥. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Info API로 받아온 닉네임을 표현해주는 부분이라 타이틀이 보여지는 시간차가 생길 순 있어도, API 자체가 실패한 게 아니면 Title에 적용 되지 않을까 합니당. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. 그 뷰분은 info쪽에서 크래시 나는지 백엔드에 요청드려서 테스트해볼게용 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 네넵..!! 감사합니당 |
||
} else { | ||
setToolbarTitle() | ||
} | ||
|
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.
view 자체가 gone 이 안돼서 생겼던 문제군요!