-
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
Fix/bug navigation : Navigation 관련 에러 해결 #121
Conversation
Release 0.0.5
* remove header * update header * add AuthCode * remove requestLogin authCode * add setAuthCode
� Conflicts: � app/proguard-rules.pro � app/src/main/java/com/depromeet/housekeeper/LoginFragment.kt � app/src/main/java/com/depromeet/housekeeper/LoginFragmentViewModel.kt � app/src/main/java/com/depromeet/housekeeper/data/RetrofitBuilder.kt � app/src/main/java/com/depromeet/housekeeper/local/PrefsManager.kt � app/src/main/java/com/depromeet/housekeeper/network/remote/api/ApiService.kt � app/src/main/java/com/depromeet/housekeeper/network/remote/api/RemoteDataSource.kt � app/src/main/java/com/depromeet/housekeeper/network/remote/repository/Repository.kt � app/src/main/java/com/depromeet/housekeeper/ui/addDirectTodo/AddDirectTodoViewModel.kt � keystore
… 나가는 현상 exception else로 처리
…ation action/destination 오류 해결
navigateSafe가 필요하지 않을 것 같은 부분은 그냥 그대로 두었습니다..!
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.
수고하셨어요!
@@ -178,7 +179,7 @@ class AddDirectTodoFragment : Fragment() { | |||
setOnClickListener { | |||
updateChore() | |||
viewModel.createHouseWorks() | |||
it.findNavController().navigate(R.id.action_addDirectTodoFragment_to_mainFragment) | |||
it.findNavController().navigateSafe(R.id.action_addDirectTodoFragment_to_mainFragment) |
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.
[Q] navigateSafe를 하게 되면 어떻게 달라지나요?
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.
[A] navigateSafe 함수에서 A->B위치로 이동하는 action이 있는지 확인 후 navigate 합니다.
따라서 중복 호출되어 이미 B위치로 넘어갔을 땐 B->B이므로 navigate가 호출되지 않아 error가 발생하지 않습니다.
val bundle = Bundle().apply { | ||
putSerializable(NAVIGATION_VIEW_TYPE, SignViewType.GroupName) | ||
putString(NAVIGATION_CODE, null) | ||
} | ||
findNavController().navigateSafe(R.id.action_joinGroupFragment_to_signNameFragment, bundle) | ||
} | ||
binding.joinGroupJoinSpaceButton.setOnClickListener { | ||
findNavController().navigate(JoinGroupFragmentDirections.actionJoinGroupFragmentToSignNameFragment(SignViewType.InviteCode,null)) | ||
val bundle = Bundle().apply { | ||
putSerializable(NAVIGATION_VIEW_TYPE, SignViewType.InviteCode) | ||
putString(NAVIGATION_CODE, null) | ||
} | ||
findNavController().navigateSafe(R.id.action_joinGroupFragment_to_signNameFragment, bundle) |
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_TYPE으로 분기한거 좋습니당
Fix/profile rounded
…Android into fix/bug_navigation
https://www.notion.so/ba85f01273f14ac3b3aeaeb991d7aa59
다음 화면으로 이동하는 button 두 번이상 클릭했을 때 앱 죽는 현상
[Error] java.lang.IllegalArgumentException: Navigation action/destination
Navigation 기능에 대한 연속적인 호출이 원인