We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b8d43 commit f495f1eCopy full SHA for f495f1e
android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt
@@ -186,9 +186,10 @@ class LiveUpdateModule(reactContext: ReactApplicationContext) :
186
)
187
188
val shortCriticalText = when {
189
- passingStationName.isNotEmpty() -> passingStationName
+ passingStationName.isNotEmpty() -> reactApplicationContext.getString(R.string.live_update_passing, passingStationName)
190
stopped -> stationName
191
- else -> nextStationName
+ approaching -> reactApplicationContext.getString(R.string.live_update_approaching, nextStationName)
192
+ else -> reactApplicationContext.getString(R.string.live_update_next, nextStationName)
193
}
194
195
val builder = Notification.Builder(reactApplicationContext, CHANNEL_ID)
0 commit comments