I'm creating a notification that fires from the wearable device and only on the wearable device, not on phone at all. I want it to have two action buttons (no functionality yet) and a third action when the notification itself is clicked. I'm trying to use setContentAction() to make the last action be the action when the notification is clicked, but it's still displaying as a separate action button (according to the documentation here it shouldn't display a separate button). That unwanted button fires the desired intent, though. The notification itself isn't responding to clicks. Here is the code to create the notification:
Intent pictureIntent = new Intent(this, PictureActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 254, pictureIntent, PendingIntent.FLAG_ONE_SHOT);
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.medicinepillmd)
.setContentTitle(dose[0])
.setContentText(dose[3])
.extend(new NotificationCompat.WearableExtender()
.setContentIcon(R.drawable.thumbnail)
.setBackground(BitmapFactory.decodeResource(getResources(), R.drawable.orangegirl))
.addAction(new NotificationCompat.Action.Builder(R.drawable.medicinepillmd, "Taken", null).build())
.addAction(new NotificationCompat.Action.Builder(R.drawable.thumbnail, "Skipped", null).build())
.addAction(new NotificationCompat.Action.Builder(0, null, pendingIntent).build())
.setContentAction(2));
Anyone know why this might not be behaving as intended? Any input appreciated. Thanks