diff --git a/app/src/main/java/umc/com/mobile/project/ui/board/GradDateFragment.kt b/app/src/main/java/umc/com/mobile/project/ui/board/GradDateFragment.kt index f7e6487..06265c9 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/board/GradDateFragment.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/board/GradDateFragment.kt @@ -69,7 +69,7 @@ class GradDateFragment : Fragment() { val date = originalFormat.parse(dateString) val formattedDate = targetFormat.format(date) viewModel.updateDateInfo(formattedDate) - Toast.makeText(context, "저장되었습니다.", Toast.LENGTH_LONG).show() + //Toast.makeText(context, "저장되었습니다.", Toast.LENGTH_LONG).show() navigate(R.id.action_fragment_date_to_fragment_home) viewModel.onEditButtonClick() } catch (e: ParseException) { diff --git a/app/src/main/java/umc/com/mobile/project/ui/board/viewmodel/GradDateViewModel.kt b/app/src/main/java/umc/com/mobile/project/ui/board/viewmodel/GradDateViewModel.kt index cceeef1..70e8fdd 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/board/viewmodel/GradDateViewModel.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/board/viewmodel/GradDateViewModel.kt @@ -126,9 +126,6 @@ class GradDateViewModel : ViewModel() { val formattedDate = targetFormat.format(date) _selectedDateRequest.value = formattedDate } - if (_dateResponse2.value != null && _dateResponse2.value!!.result != null) { - _selectedDate.value = _dateResponse2.value!!.result.gradDate - } Log.d("gradDate", "${response.body()}") } else { _error.postValue("서버 응답이 올바르지 않습니다.") diff --git a/app/src/main/res/layout/fragment_career.xml b/app/src/main/res/layout/fragment_career.xml index 0cac486..2076eee 100644 --- a/app/src/main/res/layout/fragment_career.xml +++ b/app/src/main/res/layout/fragment_career.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".ui.setting.SettingFragment"> + tools:context="ui.career.CareerFragment"> + tools:context=".ui.board.GradDateFragment">