|
|
|
@ -106,7 +106,6 @@ fun NiaApp(appState: NiaAppState, modifier: Modifier = Modifier) {
|
|
|
|
|
val isOffline by appState.isOffline.collectAsStateWithLifecycle()
|
|
|
|
|
|
|
|
|
|
// If user is not connected to the internet show a snack bar to inform them.
|
|
|
|
|
val notConnectedMessage = stringResource(R.string.not_connected)
|
|
|
|
|
LaunchedEffect(isOffline) {
|
|
|
|
|
if (isOffline) {
|
|
|
|
|
snackbarHostState.handleError(ctx, Offline)
|
|
|
|
|