From 9a6fdfe8531c68e027c679d3b2f43f2ef406f93d Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Wed, 29 Oct 2014 14:27:22 -0700 Subject: docs: Two-page notification fix. Bug: 18108228 Change-Id: I96863766dc3b787af92e8bf71615eee56afbbca9 --- docs/html/training/wearables/notifications/pages.jd | 13 ++++++------- 1 file 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); \ No newline at end of file -- cgit v1.2.3-59-g8ed1b