Skip to content

Commit f495f1e

Browse files
TinyKittenclaude
andauthored
shortCriticalTextに状態プレフィックスを追加して次は・まもなく・通過中を表示 (#5397)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d7b8d43 commit f495f1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ class LiveUpdateModule(reactContext: ReactApplicationContext) :
186186
)
187187

188188
val shortCriticalText = when {
189-
passingStationName.isNotEmpty() -> passingStationName
189+
passingStationName.isNotEmpty() -> reactApplicationContext.getString(R.string.live_update_passing, passingStationName)
190190
stopped -> stationName
191-
else -> nextStationName
191+
approaching -> reactApplicationContext.getString(R.string.live_update_approaching, nextStationName)
192+
else -> reactApplicationContext.getString(R.string.live_update_next, nextStationName)
192193
}
193194

194195
val builder = Notification.Builder(reactApplicationContext, CHANNEL_ID)

0 commit comments

Comments
 (0)