Wear separate cancel action extra with bolus progress card
This commit is contained in:
parent
8c37809751
commit
10d71325dd
|
@ -188,7 +188,10 @@ public class ListenerService extends WearableListenerService implements GoogleAp
|
|||
.setSmallIcon(R.drawable.ic_icon)
|
||||
.setContentTitle("Bolus Progress")
|
||||
.setContentText(progresspercent + "%")
|
||||
.setContentIntent(cancelPendingIntent);
|
||||
.setContentIntent(cancelPendingIntent)
|
||||
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||
.setVibrate(new long[]{0, 100, 1000})
|
||||
.addAction(R.drawable.ic_cancel, "CANCEL BOLUS", cancelPendingIntent);
|
||||
|
||||
//TODO: set separate cancel extension with icon
|
||||
|
||||
|
|
BIN
wear/src/main/res/drawable-hdpi/ic_cancel.png
Normal file
BIN
wear/src/main/res/drawable-hdpi/ic_cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 991 B |
BIN
wear/src/main/res/drawable-mdpi/ic_cancel.png
Normal file
BIN
wear/src/main/res/drawable-mdpi/ic_cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 601 B |
BIN
wear/src/main/res/drawable-xhdpi/ic_cancel.png
Normal file
BIN
wear/src/main/res/drawable-xhdpi/ic_cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
wear/src/main/res/drawable-xxhdpi/ic_cancel.png
Normal file
BIN
wear/src/main/res/drawable-xxhdpi/ic_cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in a new issue