Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a0e242c authored by Ricardo Cervera's avatar Ricardo Cervera Committed by Android Git Automerger
Browse files

am 44e79cc5: am e0a3bcfb: am 0db81996: am e0acf536: am e3dd89a4: Merge "docs:...

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

* commit '44e79cc5':
  docs: Two-page notification fix.
parents 15962f1d 44e79cc5
Loading
Loading
Loading
Loading
+6 −7
Original line number Original line Diff line number Diff line
@@ -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>
 No newline at end of file