mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Change notification icon
This commit is contained in:
@@ -67,7 +67,7 @@ class AlarmBroadcastReceiver : BroadcastReceiver() {
|
|||||||
PendingIntent.getActivity(context, 0, intent, 0)
|
PendingIntent.getActivity(context, 0, intent, 0)
|
||||||
|
|
||||||
val builder = NotificationCompat.Builder(context, CHANNEL_ID)
|
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))
|
.setContentTitle(context.getString(R.string.notification_title_reminder))
|
||||||
.setContentText(circular.name)
|
.setContentText(circular.name)
|
||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class PollWork(appContext: Context, workerParams: WorkerParameters) :
|
|||||||
circularCount
|
circularCount
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.setSmallIcon(R.drawable.ic_notifications_black_24dp)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setStyle(summaryStyle)
|
.setStyle(summaryStyle)
|
||||||
.setGroup(CHANNEL_ID)
|
.setGroup(CHANNEL_ID)
|
||||||
.setGroupSummary(true)
|
.setGroupSummary(true)
|
||||||
@@ -141,7 +141,7 @@ class PollWork(appContext: Context, workerParams: WorkerParameters) :
|
|||||||
PendingIntent.getActivity(applicationContext, 0, intent, 0)
|
PendingIntent.getActivity(applicationContext, 0, intent, 0)
|
||||||
|
|
||||||
val builder = NotificationCompat.Builder(applicationContext, CHANNEL_ID)
|
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))
|
.setContentTitle(applicationContext.getString(R.string.notification_title, circular.id))
|
||||||
.setContentText(circular.name)
|
.setContentText(circular.name)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||||
|
|||||||
34
app/src/main/res/drawable-anydpi-v24/ic_notification.xml
Normal file
34
app/src/main/res/drawable-anydpi-v24/ic_notification.xml
Normal 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>
|
||||||
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 851 B |
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 610 B |
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -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>
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/navigation_reminders"
|
android:id="@+id/navigation_reminders"
|
||||||
android:icon="@drawable/ic_notifications_black_24dp"
|
android:icon="@drawable/baseline_notifications_24"
|
||||||
android:title="@string/title_reminders" />
|
android:title="@string/title_reminders" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user