Add specific icon for user-triggered notifications.
This commit is contained in:
parent
a4aff44818
commit
047a13120e
3 changed files with 76 additions and 2 deletions
|
@ -77,7 +77,7 @@ public class DefaultAndroidBlocks {
|
|||
.Builder(ctx, ProgramakerBridgeService.BridgeUserNotificationChannel)
|
||||
.setContentTitle(title)
|
||||
.setContentText(description)
|
||||
.setSmallIcon(R.drawable.ic_center_focus_weak_black) // TODO: Change icon
|
||||
.setSmallIcon(R.drawable.ic_vector_icon_user_triggered)
|
||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||
.build();
|
||||
|
||||
|
@ -120,7 +120,7 @@ public class DefaultAndroidBlocks {
|
|||
Notification notif = new NotificationCompat
|
||||
.Builder(ctx, ProgramakerBridgeService.BridgeUserVibrationNotificationChannel)
|
||||
.setContentTitle(ctx.getString(R.string.vibration_activated))
|
||||
.setSmallIcon(R.drawable.ic_center_focus_weak_black) // TODO: Change icon
|
||||
.setSmallIcon(R.drawable.ic_vector_icon_user_triggered)
|
||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||
.setAutoCancel(true)
|
||||
.setVibrate(pattern)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<vector android:alpha="0.99" android:autoMirrored="true"
|
||||
android:height="413.2dp" android:viewportHeight="413.2"
|
||||
android:viewportWidth="353.3" android:width="353.3dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#000000"
|
||||
android:pathData="M49.99,0C22.29,0 -0,22.3 0,50L0,363.2C-0,390.9 22.29,413.2 49.99,413.2L303.3,413.2C331,413.2 353.3,390.9 353.3,363.2L353.3,50C353.3,22.3 331,0 303.3,0L49.99,0zM174.8,42.81C190.4,42.9 202.5,61.28 202.5,61.28L337.6,370.8L87.7,200.6C87.7,200.6 133.6,85.93 150.3,60.04C158.7,47.09 167.2,42.77 174.8,42.81zM83.82,210.3L175.6,273.9L15.64,370.2L83.82,210.3z"
|
||||
android:strokeColor="#00000000" android:strokeLineCap="square" android:strokeWidth="0"/>
|
||||
</vector>
|
Loading…
Add table
Add a link
Reference in a new issue