* commit '0db8199664e9f501c4b2d1f8e404d762f68ae684': docs: Two-page notification fix.
This commit is contained in:
@@ -57,15 +57,14 @@ Notification secondPageNotification =
|
||||
.setStyle(secondPageStyle)
|
||||
.build();
|
||||
|
||||
// Add second page with wearable extender and extend the main notification
|
||||
Notification twoPageNotification =
|
||||
new WearableExtender()
|
||||
.addPage(secondPageNotification)
|
||||
.extend(notificationBuilder)
|
||||
.build();
|
||||
// Extend the notification builder with the second page
|
||||
Notification notification = notificationBuilder
|
||||
.extend(new NotificationCompat.WearableExtender()
|
||||
.addPage(secondPageNotification))
|
||||
.build();
|
||||
|
||||
// Issue the notification
|
||||
notificationManager =
|
||||
NotificationManagerCompat.from(this);
|
||||
notificationManager.notify(notificationId, twoPageNotification);
|
||||
notificationManager.notify(notificationId, notification);
|
||||
</pre>
|
||||
Reference in New Issue
Block a user