File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed
src/main/java/com/sopt/clody/presentation/ui Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ android {
2525 applicationId = " com.sopt.clody"
2626 minSdk = 28
2727 targetSdk = 35
28- versionCode = 24
29- versionName = " 1.1.0 "
28+ versionCode = 25
29+ versionName = " 1.1.1 "
3030 val kakaoApiKey: String = properties.getProperty(" kakao.api.key" )
3131 val amplitudeApiKey: String = properties.getProperty(" amplitude.api.key" )
3232 val googleAdmobAppId: String = properties.getProperty(" GOOGLE_ADMOB_APP_ID" , " " )
Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ fun ScrollableCalendar(
2929 onDiaryDataUpdated : (Int , String ) -> Unit ,
3030 modifier : Modifier = Modifier ,
3131) {
32- LaunchedEffect (selectedDate) {
33- homeViewModel.updateDiaryState(diaries)
34- onDiaryDataUpdated(homeViewModel.diaryCount.value, homeViewModel.replyStatus.value)
32+ LaunchedEffect (selectedDate, diaries) {
33+ if (selectedDate.year == selectedYear && selectedDate.monthValue == selectedMonth) {
34+ homeViewModel.updateDiaryState(diaries)
35+ onDiaryDataUpdated(homeViewModel.diaryCount.value, homeViewModel.replyStatus.value)
36+ }
3537 }
3638 val scrollState = rememberScrollState()
3739
Original file line number Diff line number Diff line change @@ -248,10 +248,9 @@ fun ReplyLoadingScreen(
248248 )
249249
250250 Spacer (modifier = Modifier .heightForScreenPercentage(0.036f ))
251- if (! isWaitingForPatchResponse && ! isAdCompleted && ! isFirstDiary) {
252- QuickReplyAdButton (
253- onClick = onShowAdClick,
254- )
251+ val shouldShowAdButton = ! isComplete && ! isAdCompleted && ! isWaitingForPatchResponse && ! isFirstDiary
252+ if (shouldShowAdButton) {
253+ QuickReplyAdButton (onClick = onShowAdClick)
255254 }
256255 }
257256 },
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class SettingNavigator(
2020 }
2121
2222 fun navigateBack () {
23- navController.navigateUp()
23+ if (navController.currentBackStackEntry?.lifecycle?.currentState == androidx.lifecycle.Lifecycle .State .RESUMED ) {
24+ navController.popBackStack()
25+ }
2426 }
2527}
You can’t perform that action at this time.
0 commit comments