docs: Two-page notification fix.

Bug: 18108228

Change-Id: I96863766dc3b787af92e8bf71615eee56afbbca9
This commit is contained in:
Ricardo Cervera
2014-10-29 14:27:22 -07:00
parent 0fa6edced7
commit 9a6fdfe853

View File

@@ -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>