From 383090171fda7698d0ba2ecb6d58bcd42e7415f6 Mon Sep 17 00:00:00 2001 From: oh in seong <58154638+ois0886@users.noreply.github.com> Date: Thu, 12 Nov 2026 09:55:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B0=A8=EB=9F=89=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=EC=9D=B4=20=EC=97=86=EC=9D=84=20=EB=95=8C=20?= =?UTF-8?q?=ED=99=88=20=EC=9E=A0=EA=B8=88=20=EC=9B=90=EC=9D=B8=20=EC=95=88?= =?UTF-8?q?=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hangil/core/designsystem/ParkedComponents.kt | 10 +++++++--- .../github/hangillab/hangil/feature/home/HomeScreen.kt | 10 +++++++++- feature/home/src/main/res/values/strings.xml | 2 ++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/core/designsystem/src/main/kotlin/io/github/hangillab/hangil/core/designsystem/ParkedComponents.kt b/core/designsystem/src/main/kotlin/io/github/hangillab/hangil/core/designsystem/ParkedComponents.kt index 10fba763..46085555 100644 --- a/core/designsystem/src/main/kotlin/io/github/hangillab/hangil/core/designsystem/ParkedComponents.kt +++ b/core/designsystem/src/main/kotlin/io/github/hangillab/hangil/core/designsystem/ParkedComponents.kt @@ -1,5 +1,6 @@ package io.github.hangillab.hangil.core.designsystem +import androidx.annotation.StringRes import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column @@ -124,14 +125,17 @@ fun ParkedChoice( } @Composable -fun ParkedLockedNotice() { +fun ParkedLockedNotice( + @StringRes titleRes: Int = R.string.practice_locked_title, + @StringRes descriptionRes: Int = R.string.practice_locked_description, +) { ParkedPanel { Text( - stringResource(R.string.practice_locked_title), + stringResource(titleRes), style = MaterialTheme.typography.headlineMedium, fontWeight = FontWeight.SemiBold, ) - Text(stringResource(R.string.practice_locked_description), style = MaterialTheme.typography.bodyLarge) + Text(stringResource(descriptionRes), style = MaterialTheme.typography.bodyLarge) Text( stringResource(R.string.practice_locked_saved), style = MaterialTheme.typography.bodyLarge, diff --git a/feature/home/src/main/kotlin/io/github/hangillab/hangil/feature/home/HomeScreen.kt b/feature/home/src/main/kotlin/io/github/hangillab/hangil/feature/home/HomeScreen.kt index 57a6a4e6..5b92ef21 100644 --- a/feature/home/src/main/kotlin/io/github/hangillab/hangil/feature/home/HomeScreen.kt +++ b/feature/home/src/main/kotlin/io/github/hangillab/hangil/feature/home/HomeScreen.kt @@ -31,6 +31,7 @@ import io.github.hangillab.hangil.core.designsystem.ParkedDisclosure import io.github.hangillab.hangil.core.designsystem.ParkedLockedNotice import io.github.hangillab.hangil.core.designsystem.ParkedPage import io.github.hangillab.hangil.core.designsystem.ParkedPanel +import io.github.hangillab.hangil.core.domain.ConnectionState import io.github.hangillab.hangil.core.domain.LocationRecordingState import io.github.hangillab.hangil.core.domain.PracticeSession import io.github.hangillab.hangil.core.domain.Preparation @@ -191,7 +192,14 @@ internal fun HomeScreen( Modifier.testTag("home_locked_title"), style = MaterialTheme.typography.titleLarge, ) - ParkedLockedNotice() + if (state.vehicle.connection == ConnectionState.PERMISSION_DENIED) { + ParkedLockedNotice( + titleRes = R.string.home_vehicle_permission_locked_title, + descriptionRes = R.string.home_vehicle_permission_locked_description, + ) + } else { + ParkedLockedNotice() + } } else { HomeHeader() HomeDashboard(first = sessionContent, second = { diff --git a/feature/home/src/main/res/values/strings.xml b/feature/home/src/main/res/values/strings.xml index 02293fa1..ef9d4ea6 100644 --- a/feature/home/src/main/res/values/strings.xml +++ b/feature/home/src/main/res/values/strings.xml @@ -2,6 +2,8 @@ 시연 지도 보기 한길졸업 + 차량 상태를 확인할 수 없어요 + 차량 정보를 읽을 권한이 없어 준비와 복습을 잠갔어요. 내가 매일 가야 하는 길 하나부터, 내 힘으로. 출발 전 준비부터 주차 후 복습까지, 생활 경로 하나를 익히는 연습을 준비하고 있어요. 차량 연결