Merge "docs: Two-page notification fix." into lmp-docs

This commit is contained in:
Ricardo Cervera
2014-10-30 15:27:31 +00:00
committed by Android (Google) Code Review

View File

@@ -57,15 +57,14 @@ Notification secondPageNotification =
.setStyle(secondPageStyle) .setStyle(secondPageStyle)
.build(); .build();
// Add second page with wearable extender and extend the main notification // Extend the notification builder with the second page
Notification twoPageNotification = Notification notification = notificationBuilder
new WearableExtender() .extend(new NotificationCompat.WearableExtender()
.addPage(secondPageNotification) .addPage(secondPageNotification))
.extend(notificationBuilder)
.build(); .build();
// Issue the notification // Issue the notification
notificationManager = notificationManager =
NotificationManagerCompat.from(this); NotificationManagerCompat.from(this);
notificationManager.notify(notificationId, twoPageNotification); notificationManager.notify(notificationId, notification);
</pre> </pre>