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

View File

@@ -0,0 +1,24 @@
<!--
~ Copyright (C) 2026 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:pathData="M480,471ZM480,880q-33,0 -56.5,-23.5T400,800h160q0,33 -23.5,56.5T480,880ZM160,760v-80h80v-280q0,-84 50.5,-149T422,167q-10,22 -15.5,46t-7.5,49q-35,21 -57,57t-22,81v280h320v-122q20,3 40,3t40,-3v122h80v80L160,760ZM640,480 L628,420q-12,-5 -22.5,-10.5T584,396l-58,18 -40,-68 46,-40q-2,-13 -2,-26t2,-26l-46,-40 40,-68 58,18q11,-8 21.5,-13.5T628,140l12,-60h80l12,60q12,5 22.5,10.5T776,164l58,-18 40,68 -46,40q2,13 2,26t-2,26l46,40 -40,68 -58,-18q-11,8 -21.5,13.5T732,420l-12,60h-80ZM736.5,336.5Q760,313 760,280t-23.5,-56.5Q713,200 680,200t-56.5,23.5Q600,247 600,280t23.5,56.5Q647,360 680,360t56.5,-23.5Z"
android:fillColor="#e3e3e3"/>
</vector>