Change notification icon

This commit is contained in:
2019-09-30 20:38:04 +02:00
committed by Matte23
parent 6d23ff7ee8
commit 73bbea60cf
9 changed files with 38 additions and 13 deletions

View File

@@ -67,7 +67,7 @@ class AlarmBroadcastReceiver : BroadcastReceiver() {
PendingIntent.getActivity(context, 0, intent, 0)
val builder = NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notifications_black_24dp)
.setSmallIcon(R.drawable.ic_notification)
.setContentTitle(context.getString(R.string.notification_title_reminder))
.setContentText(circular.name)
.setPriority(NotificationCompat.PRIORITY_HIGH)

View File

@@ -115,7 +115,7 @@ class PollWork(appContext: Context, workerParams: WorkerParameters) :
circularCount
)
)
.setSmallIcon(R.drawable.ic_notifications_black_24dp)
.setSmallIcon(R.drawable.ic_notification)
.setStyle(summaryStyle)
.setGroup(CHANNEL_ID)
.setGroupSummary(true)
@@ -141,7 +141,7 @@ class PollWork(appContext: Context, workerParams: WorkerParameters) :
PendingIntent.getActivity(applicationContext, 0, intent, 0)
val builder = NotificationCompat.Builder(applicationContext, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notifications_black_24dp)
.setSmallIcon(R.drawable.ic_notification)
.setContentTitle(applicationContext.getString(R.string.notification_title, circular.id))
.setContentText(circular.name)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)

View File

@@ -0,0 +1,34 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="17.391304"
android:viewportHeight="17.391304"
android:tint="#FFFFFF">
<group
android:translateX="0.6956522"
android:translateY="0.6956522">
<path
android:pathData="M13.1391,12.7023A6.9124,6.8112 0,0 1,3.3671 12.9669,6.9124 6.8112,0 0,1 3.0986,3.3381 6.9124,6.8112 0,0 1,12.8705 3.0734,6.9124 6.8112,0 0,1 13.1392,12.7022"
android:strokeAlpha="1"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#ffffff"
android:fillAlpha="1" />
<path
android:pathData="M13.0031,13.5209 L7.9052,2.4303 3.9937,11.4253 11.0025,9.2625v0,0"
android:strokeAlpha="1"
android:strokeLineJoin="miter"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#ffffff"
android:fillAlpha="1"
android:strokeLineCap="butt" />
<path
android:pathData="M13.1391,12.7023A6.9124,6.8112 0,0 1,5.6086 14.3664,6.9124 6.8112,0 0,1 1.2072,8.1199 6.9124,6.8112 0,0 1,5.421 1.7491,6.9124 6.8112,0 0,1 12.9977,3.1951"
android:strokeAlpha="1"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#ffffff"
android:fillAlpha="1" />
</group>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
</vector>

View File

@@ -13,7 +13,7 @@
<item
android:id="@+id/navigation_reminders"
android:icon="@drawable/ic_notifications_black_24dp"
android:icon="@drawable/baseline_notifications_24"
android:title="@string/title_reminders" />
</menu>