am 44e79cc5: am e0a3bcfb: am 0db81996: am e0acf536: am e3dd89a4: Merge "docs: Two-page notification fix." into lmp-docs

* commit '44e79cc59ab32f37e3e0c91046e01e47c24fc1e6':
  docs: Two-page notification fix.
This commit is contained in:
Ricardo Cervera
2014-10-31 00:16:38 +00:00
committed by Android Git Automerger

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>