Skip to content

Commit

Permalink
KKUMI-108 [FEAT] #90 - 포스트 작성 중 이미지 없을 때 : 이미지 선택창으로 들어갔다가 선택 안 하고 돌아…
Browse files Browse the repository at this point in the history
…왔을 때 이미지 추가하기 버튼 그대로 보여주기
  • Loading branch information
jung0115 committed Oct 30, 2024
1 parent d899ee5 commit 532244f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.marastro.mykkumi.data.util
package com.marastro.mykkumi.data.utils

import android.content.ContentResolver
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class PostEditFragment : BaseFragment<FragmentPostEditBinding>(R.layout.fragment
if(navController?.currentDestination?.id == R.id.postEditFragment && !isStartPosting) {
navController?.popBackStack()
}

// 상태 복원 완료
isRestoringState = false
}
Expand All @@ -97,7 +98,9 @@ class PostEditFragment : BaseFragment<FragmentPostEditBinding>(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
Expand Down

0 comments on commit 532244f

Please sign in to comment.