Add specific icon for user-triggered notifications.
This commit is contained in:
parent
a4aff44818
commit
047a13120e
@ -77,7 +77,7 @@ public class DefaultAndroidBlocks {
|
|||||||
.Builder(ctx, ProgramakerBridgeService.BridgeUserNotificationChannel)
|
.Builder(ctx, ProgramakerBridgeService.BridgeUserNotificationChannel)
|
||||||
.setContentTitle(title)
|
.setContentTitle(title)
|
||||||
.setContentText(description)
|
.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)
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ public class DefaultAndroidBlocks {
|
|||||||
Notification notif = new NotificationCompat
|
Notification notif = new NotificationCompat
|
||||||
.Builder(ctx, ProgramakerBridgeService.BridgeUserVibrationNotificationChannel)
|
.Builder(ctx, ProgramakerBridgeService.BridgeUserVibrationNotificationChannel)
|
||||||
.setContentTitle(ctx.getString(R.string.vibration_activated))
|
.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)
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setVibrate(pattern)
|
.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>
|
67
asset-src/ic_vector_icon_user_triggered.svg
Normal file
67
asset-src/ic_vector_icon_user_triggered.svg
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
|
||||||
|
sodipodi:docname="ic_vector_icon_user_triggered.svg"
|
||||||
|
viewBox="0 0 353.3 413.2"
|
||||||
|
height="413.2"
|
||||||
|
width="353.3"
|
||||||
|
id="svg2693"
|
||||||
|
version="1.1">
|
||||||
|
<metadata
|
||||||
|
id="metadata2699">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs2697" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-top="0"
|
||||||
|
inkscape:current-layer="g2701"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:window-y="20"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:cy="208.5"
|
||||||
|
inkscape:cx="231.7"
|
||||||
|
inkscape:zoom="0.9531"
|
||||||
|
showgrid="false"
|
||||||
|
id="namedview2695"
|
||||||
|
inkscape:window-height="746"
|
||||||
|
inkscape:window-width="1364"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
guidetolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
borderopacity="1"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
inkscape:document-rotation="0" />
|
||||||
|
<g
|
||||||
|
transform="translate(1.235,33.44)"
|
||||||
|
id="g2701"
|
||||||
|
inkscape:label="Image"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<path
|
||||||
|
transform="translate(-1.235,-33.44)"
|
||||||
|
d="M 49.99 0 C 22.29 0 -4.737e-15 22.3 0 50 L 0 363.2 C -4.737e-15 390.9 22.29 413.2 49.99 413.2 L 303.3 413.2 C 331 413.2 353.3 390.9 353.3 363.2 L 353.3 50 C 353.3 22.3 331 0 303.3 0 L 49.99 0 z M 174.8 42.81 C 190.4 42.9 202.5 61.28 202.5 61.28 L 337.6 370.8 L 87.7 200.6 C 87.7 200.6 133.6 85.93 150.3 60.04 C 158.7 47.09 167.2 42.77 174.8 42.81 z M 83.82 210.3 L 175.6 273.9 L 15.64 370.2 L 83.82 210.3 z "
|
||||||
|
style="fill:#000000;stroke:none;stroke-width:0;stroke-linecap:square;stroke-miterlimit:1.6;paint-order:stroke fill markers"
|
||||||
|
id="rect1038" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in New Issue
Block a user