Wear separate cancel action extra with bolus progress card

This commit is contained in:
AdrianLxM 2017-02-06 21:10:55 +01:00
parent 8c37809751
commit 10d71325dd
5 changed files with 4 additions and 1 deletions

View file

@ -188,7 +188,10 @@ public class ListenerService extends WearableListenerService implements GoogleAp
.setSmallIcon(R.drawable.ic_icon) .setSmallIcon(R.drawable.ic_icon)
.setContentTitle("Bolus Progress") .setContentTitle("Bolus Progress")
.setContentText(progresspercent + "%") .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 //TODO: set separate cancel extension with icon

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB