fix linting issue & add new icon
This commit is contained in:
@@ -95,7 +95,7 @@ private fun ScreenContent(onNavigateTo: (Destination) -> Unit = {}) {
|
||||
},
|
||||
leadingContent = {
|
||||
Icon(
|
||||
painter = painterResource(R.drawable.ic_notification_outlined),
|
||||
painter = painterResource(R.drawable.ic_notification_settings),
|
||||
contentDescription = null
|
||||
)
|
||||
},
|
||||
|
||||
@@ -87,7 +87,12 @@ class AuthViewModel @Inject constructor(
|
||||
)
|
||||
} catch (exception: Exception) {
|
||||
Log.e(TAG, "Failed to generate Session", exception)
|
||||
_authState.value = AuthState.Failed(exception.message.toString())
|
||||
val message = when (exception) {
|
||||
is UnknownHostException -> context.getString(R.string.check_connectivity)
|
||||
else -> exception.message.toString()
|
||||
}
|
||||
|
||||
_authState.value = AuthState.Failed(message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user