diff --git a/app/src/main/java/com/marastro/mykkumi/android/MyKkumiApplication.kt b/app/src/main/java/com/marastro/mykkumi/android/MyKkumiApplication.kt index cc8720a..6ae3f8c 100644 --- a/app/src/main/java/com/marastro/mykkumi/android/MyKkumiApplication.kt +++ b/app/src/main/java/com/marastro/mykkumi/android/MyKkumiApplication.kt @@ -2,7 +2,7 @@ package com.marastro.mykkumi.android import android.app.Application import com.google.firebase.analytics.FirebaseAnalytics -import com.marastro.mykkumi.data.util.KakaoInitializer +import com.marastro.mykkumi.data.utils.KakaoInitializer import com.marastro.mykkumi.domain.datastore.AuthTokenDataStore import dagger.hilt.android.HiltAndroidApp import javax.inject.Inject diff --git a/core/data/src/main/java/com/marastro/mykkumi/data/di/NetworkModule.kt b/core/data/src/main/java/com/marastro/mykkumi/data/di/NetworkModule.kt index c293ecf..5bfcd54 100644 --- a/core/data/src/main/java/com/marastro/mykkumi/data/di/NetworkModule.kt +++ b/core/data/src/main/java/com/marastro/mykkumi/data/di/NetworkModule.kt @@ -22,7 +22,7 @@ import com.marastro.mykkumi.data.datasource.ReportDataSource import com.marastro.mykkumi.data.datasource.UserInfoDataSource import com.marastro.mykkumi.data.interceptor.TokenAuthenticator import com.marastro.mykkumi.data.interceptor.TokenInterceptor -import com.marastro.mykkumi.data.util.KakaoInitializer +import com.marastro.mykkumi.data.utils.KakaoInitializer import com.marastro.mykkumi.domain.datastore.AuthTokenDataStore import com.marastro.mykkumi.domain.repository.ReAccessTokenRepository import dagger.hilt.android.qualifiers.ApplicationContext diff --git a/core/data/src/main/java/com/marastro/mykkumi/data/repository/PreSignedUrlRepositoryImpl.kt b/core/data/src/main/java/com/marastro/mykkumi/data/repository/PreSignedUrlRepositoryImpl.kt index 850c050..316442f 100644 --- a/core/data/src/main/java/com/marastro/mykkumi/data/repository/PreSignedUrlRepositoryImpl.kt +++ b/core/data/src/main/java/com/marastro/mykkumi/data/repository/PreSignedUrlRepositoryImpl.kt @@ -4,7 +4,7 @@ import android.content.Context import android.widget.Toast import com.marastro.mykkumi.data.datasource.PreSignedUrlDataSource import com.marastro.mykkumi.data.datasource.PutImageS3DataSource -import com.marastro.mykkumi.data.util.FormDataUtil +import com.marastro.mykkumi.data.utils.FormDataUtil import com.marastro.mykkumi.domain.repository.PreSignedUrlRepository import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject diff --git a/core/data/src/main/java/com/marastro/mykkumi/data/util/FormDataUtil.kt b/core/data/src/main/java/com/marastro/mykkumi/data/utils/FormDataUtil.kt similarity index 98% rename from core/data/src/main/java/com/marastro/mykkumi/data/util/FormDataUtil.kt rename to core/data/src/main/java/com/marastro/mykkumi/data/utils/FormDataUtil.kt index 29e8522..9ce4d8a 100644 --- a/core/data/src/main/java/com/marastro/mykkumi/data/util/FormDataUtil.kt +++ b/core/data/src/main/java/com/marastro/mykkumi/data/utils/FormDataUtil.kt @@ -1,4 +1,4 @@ -package com.marastro.mykkumi.data.util +package com.marastro.mykkumi.data.utils import android.content.ContentResolver import android.content.Context diff --git a/core/data/src/main/java/com/marastro/mykkumi/data/util/KakaoInitializer.kt b/core/data/src/main/java/com/marastro/mykkumi/data/utils/KakaoInitializer.kt similarity index 91% rename from core/data/src/main/java/com/marastro/mykkumi/data/util/KakaoInitializer.kt rename to core/data/src/main/java/com/marastro/mykkumi/data/utils/KakaoInitializer.kt index ff9469f..0dc563f 100644 --- a/core/data/src/main/java/com/marastro/mykkumi/data/util/KakaoInitializer.kt +++ b/core/data/src/main/java/com/marastro/mykkumi/data/utils/KakaoInitializer.kt @@ -1,4 +1,4 @@ -package com.marastro.mykkumi.data.util +package com.marastro.mykkumi.data.utils import android.content.Context import com.kakao.sdk.common.KakaoSdk diff --git a/feature/post/src/main/java/com/marastro/mykkumi/feature/post/PostEditFragment.kt b/feature/post/src/main/java/com/marastro/mykkumi/feature/post/PostEditFragment.kt index 63d2226..61cfd21 100644 --- a/feature/post/src/main/java/com/marastro/mykkumi/feature/post/PostEditFragment.kt +++ b/feature/post/src/main/java/com/marastro/mykkumi/feature/post/PostEditFragment.kt @@ -85,6 +85,7 @@ class PostEditFragment : BaseFragment(R.layout.fragment if(navController?.currentDestination?.id == R.id.postEditFragment && !isStartPosting) { navController?.popBackStack() } + // 상태 복원 완료 isRestoringState = false } @@ -97,7 +98,9 @@ class PostEditFragment : BaseFragment(R.layout.fragment navController = view.findNavController() - binding.relativeEmptyImage.visibility = View.GONE + if(!viewModel.postEditUiState.value.isNullOrEmpty()) binding.relativeEmptyImage.visibility = View.GONE + else binding.relativeEmptyImage.visibility = View.VISIBLE + binding.textBtnUploadPost.setBackgroundResource(com.marastro.mykkumi.common_ui.R.drawable.shape_btn_round12_neutral50) binding.textBtnUploadPost.setTextColor(ContextCompat.getColor(requireContext(), com.marastro.mykkumi.common_ui.R.color.neutral_700)) binding.textCountContent.visibility = View.GONE