diff options
| author | 2014-10-30 15:44:55 +0000 | |
|---|---|---|
| committer | 2014-10-30 15:44:55 +0000 | |
| commit | e0a3bcfbe1637db8584b176a67447f152716036f (patch) | |
| tree | fe49965e44872a8774783c5c19673793dcca279c | |
| parent | cdbdbe3a54f46cbe885fb2bb27d5e79297730bf0 (diff) | |
| parent | 0db8199664e9f501c4b2d1f8e404d762f68ae684 (diff) | |
am 0db81996: am e0acf536: am e3dd89a4: Merge "docs: Two-page notification fix." into lmp-docs
* commit '0db8199664e9f501c4b2d1f8e404d762f68ae684':
docs: Two-page notification fix.
| -rw-r--r-- | docs/html/training/wearables/notifications/pages.jd | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/html/training/wearables/notifications/pages.jd b/docs/html/training/wearables/notifications/pages.jd index d74c8ea40b8c..6315037e00f6 100644 --- a/docs/html/training/wearables/notifications/pages.jd +++ b/docs/html/training/wearables/notifications/pages.jd @@ -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>
\ No newline at end of file |