Change variable name for 'not connected' message

pull/1837/head
Don Turner 3 years ago
parent 31133a4c4e
commit 18d1259a79

@ -101,10 +101,10 @@ fun NiaApp(
val isOffline by appState.isOffline.collectAsStateWithLifecycle() val isOffline by appState.isOffline.collectAsStateWithLifecycle()
// If user is not connected to the internet show a snack bar to inform them. // If user is not connected to the internet show a snack bar to inform them.
val notConnected = stringResource(R.string.not_connected) val notConnectedMessage = stringResource(R.string.not_connected)
LaunchedEffect(isOffline) { LaunchedEffect(isOffline) {
if (isOffline) snackbarHostState.showSnackbar( if (isOffline) snackbarHostState.showSnackbar(
message = notConnected, message = notConnectedMessage,
duration = Indefinite duration = Indefinite
) )
} }

Loading…
Cancel
Save