mirror of
https://github.com/bitwarden/android.git
synced 2024-11-25 19:06:05 +03:00
Add notification-specific icons (#1088)
This commit is contained in:
parent
08e1e623c6
commit
fc17370223
2 changed files with 11 additions and 1 deletions
|
@ -66,7 +66,7 @@ class AuthRequestNotificationManagerImpl(
|
|||
?.let { context.getString(R.string.confim_log_in_attemp_for_x, it) }
|
||||
?: context.getString(R.string.confirm_log_in),
|
||||
)
|
||||
.setSmallIcon(R.drawable.ic_launcher_foreground)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setColor(Color.White.value.toInt())
|
||||
.setAutoCancel(true)
|
||||
.setTimeoutAfter(NOTIFICATION_DEFAULT_TIMEOUT_MILLIS)
|
||||
|
|
10
app/src/main/res/drawable/ic_notification.xml
Normal file
10
app/src/main/res/drawable/ic_notification.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="#FFFFFF"
|
||||
android:viewportHeight="668"
|
||||
android:viewportWidth="668">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M606.85,9C604.3,6.35 601.24,4.25 597.85,2.81C594.45,1.38 590.8,0.65 587.11,0.67H80.93C77.24,0.65 73.57,1.38 70.17,2.81C66.78,4.25 63.72,6.35 61.19,9C58.51,11.5 56.38,14.54 54.92,17.9C53.47,21.25 52.73,24.85 52.75,28.5V361.83C52.86,387.2 57.83,412.33 67.43,435.87C76.56,459.1 88.84,481.02 103.92,501C119.42,521.02 136.78,539.54 155.76,556.37C173.37,572.33 191.93,587.27 211.31,601.08C228.19,612.91 245.9,624.12 264.46,634.7C283.02,645.29 296.12,652.43 303.78,656.16C311.5,659.91 317.74,662.87 322.38,664.83C326.01,666.56 329.99,667.41 334.02,667.33C337.99,667.39 341.91,666.47 345.45,664.7C350.18,662.66 356.33,659.79 364.14,656.04C371.94,652.29 385.23,645.12 403.45,634.58C421.68,624.04 439.6,612.79 456.6,600.95C476.01,587.12 494.59,572.2 512.24,556.24C531.24,539.43 548.6,520.89 564.08,500.87C579.14,480.87 591.42,458.98 600.57,435.75C610.19,412.2 615.16,387.08 615.25,361.71V28.38C615.27,24.75 614.53,21.17 613.08,17.83C611.62,14.5 609.51,11.5 606.85,9ZM541.6,364.87C541.6,485.7 334.02,589.49 334.02,589.49V72.08H541.6V364.87Z" />
|
||||
</vector>
|
Loading…
Reference in a new issue