diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-10-29 14:27:22 -0700 |
---|---|---|
committer | Ricardo Cervera <rcervera@google.com> | 2014-10-29 14:27:22 -0700 |
commit | 9a6fdfe8531c68e027c679d3b2f43f2ef406f93d (patch) | |
tree | e504b2e52c20da743c2fb324fd006f8691a7244c /docs | |
parent | 0fa6edced7496b898d31ff7dab7255a1e0dffa9b (diff) | |
download | frameworks_base-9a6fdfe8531c68e027c679d3b2f43f2ef406f93d.zip frameworks_base-9a6fdfe8531c68e027c679d3b2f43f2ef406f93d.tar.gz frameworks_base-9a6fdfe8531c68e027c679d3b2f43f2ef406f93d.tar.bz2 |
docs: Two-page notification fix.
Bug: 18108228
Change-Id: I96863766dc3b787af92e8bf71615eee56afbbca9
Diffstat (limited to 'docs')
-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 d74c8ea..6315037 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 |