fix linting issue & add new icon

This commit is contained in:
Rahul Patel
2026-05-30 18:41:31 +05:30
parent 60a6df58c5
commit 9f813d965b
3 changed files with 31 additions and 2 deletions

View File

@@ -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
)
},

View File

@@ -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)
}
}
}