WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/MessagingIntentService.java [207:231]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        final NotificationCompat.Action.WearableExtender inlineActionForWear2 =
                new NotificationCompat.Action.WearableExtender()
                        .setHintDisplayActionInline(true)
                        .setHintLaunchesActivity(false);

        NotificationCompat.Action replyAction =
                new NotificationCompat.Action.Builder(
                        R.drawable.reply,
                        replyLabel,
                        replyActionPendingIntent)
                        .addRemoteInput(remoteInput)
                        // Informs system we aren't bringing up our own custom UI for a reply
                        // action.
                        .setShowsUserInterface(false)
                        // Allows system to generate replies by context of conversation.
                        .setAllowGeneratedReplies(true)
                        // Add WearableExtender to enable inline actions.
                        .setSemanticAction(NotificationCompat.Action.SEMANTIC_ACTION_REPLY)
                        .extend(inlineActionForWear2)
                        .build();

        // 5. Build and issue the notification.

        // Notification Channel Id is ignored for Android pre O (26).
        NotificationCompat.Builder notificationCompatBuilder =
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/NotificationsActivity.java [229:258]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            final NotificationCompat.Action.WearableExtender inlineActionForWear2 =
                    new NotificationCompat.Action.WearableExtender()
                            .setHintDisplayActionInline(true)
                            .setHintLaunchesActivity(false);

            NotificationCompat.Action replyAction =
                    new NotificationCompat.Action.Builder(
                            R.drawable.reply,
                            replyLabel,
                            replyActionPendingIntent)
                            .addRemoteInput(remoteInput)
                            // Informs system we aren't bringing up our own custom UI for a reply
                            // action.
                            .setShowsUserInterface(false)
                            // Allows system to generate replies by context of conversation.
                            .setAllowGeneratedReplies(true)
                            // Add WearableExtender to enable inline actions.
                            .setSemanticAction(NotificationCompat.Action.SEMANTIC_ACTION_REPLY)
                            .extend(inlineActionForWear2)
                            .build();


            // 5. Build and issue the notification.

            // Because we want this to be a new notification (not updating current notification), we
            // create a new Builder. Later, we update this same notification, so we need to save
            // this Builder globally (as outlined earlier).

            // Notification Channel Id is ignored for Android pre O (26).
            NotificationCompat.Builder notificationCompatBuilder =
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



