Skip to content

Fix documentation errors in Android.App notification types (R110, pass 3) - #1988

Merged
jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-android-app-docs-r110-pass3
Nov 28, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-android-app-docs-r110-pass3

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d9638cb9268ad950601bdfe196e69ce3f2de5d55

Dimension Assessment Rationale
Change confidence 9/10 ↑ All eight corrected channels cite pinned AOSP API 37.2 or dotnet/android@9bc18c75 sources.
↑ All seven changed XML files parse; encoding and CRLF are preserved; no new placeholders; diff checks pass.
↑ Gemini reviews found no problems.
↑ Fresh Copilot review recommends approval on this head; its channel finding is resolved.
↓ OpenPublishing.Build and human review are pending.
Diagnosis confidence 9/10 ↑ Pinned implementations support the JNI, semantic action and promotion corrections.
↑ Notification.java:5125-5137 requires a previously created channel and deprecates the constructor used in the restored examples.
Evidence fit 9/10 ↑ Changes address the eight reviewed channels and the exact Copilot finding about posting without a notification channel.

Pass-3 documentation review of item R110: 42 files in docs/xml/Android.App (the Notification types). Only text that changed in 86f7744a1..origin/main was reviewed. 824 blocks (2453 channels) were checked; 8 errors were fixed.

Fixes

File Member / channel Error Evidence
Notification+Metric+MetricValue.xml #ctor(IntPtr, JniHandleOwnership) transfer Said ownership of the JNI reference transfers to the instance. The peer makes its own reference; transfer selects deletion of the incoming reference and peer registration. Wording as in #1941. dotnet/android@9bc18c75 Object.cs:110-118, JNIEnv.cs:360-393
Notification+CarExtender.xml TYPE remarks Java example from the class Javadoc was dropped. Restored with the channel-aware constructor and a previously created channel. Notification.java:17360-17384, 5125-5137
Notification+TvExtender.xml TYPE remarks Same as above. Notification.java:17761-17785, 5125-5137
Notification+WearableExtender.xml TYPE remarks Same as above (two examples). Copilot identified the missing channel in the restored posting example; corrected all three creation examples. Notification.java:16463-16502, 5125-5137
Notification+BubbleMetadata.xml AutoExpandBubble summary Summary was only "See also:". getAutoExpandBubble() @return
Notification+Action.xml SemanticAction value Promised every value is a public SemanticAction member. The int is not checked, and @SystemApi values 11 and 12 exist for notification assistant services. Notification.java:2146-2158, 2303, 2333, 2600-2603
Notification.xml HasPromotableCharacteristics value Said "passes the content and style checks". The method also checks the request flag, ongoing state, group summary and bridged state. Notification.java:3749-3764
Notification.xml Flags value Called the field "ordinary" notification flags. The flags field holds every @NotificationFlags value. Notification.java:895-919

Uncertain findings

None.

Checks

  • All changed XML files parse. git diff --check is clean. No To be added placeholders added. Line endings and encoding are unchanged.
  • No changes to index.xml, _filter.xml or FrameworksIndex.
  • All 46 crefs added in the reviewed text resolve to current, non-obsolete members. No raw {@link} or Class#member text remains in the reviewed prose.
  • API-level deprecation statements match api-versions.xml (API 37.2).
  • Rubber-duck review with gemini-4-argon: no problems found; follow-up channel correction also reviewed with gemini-4-argon, with no problems found.

…s 3)

- Notification.Metric.MetricValue: correct the transfer parameter text.
- CarExtender, TvExtender, WearableExtender: restore the Java examples in
  the type remarks.
- BubbleMetadata.AutoExpandBubble: replace the 'See also:' summary.
- Action.SemanticAction: state that the value is not checked.
- Notification.HasPromotableCharacteristics and Flags: match the source.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 28, 2026 15:59
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 28, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The restored wearable notification example omits a notification channel ID, preventing it from displaying notifications for apps targeting API 26 or later on Android 8.0+.

1 open issue
What changed in this PR

This documentation-only PR corrects eight issues across seven Android.App notification reference files, restoring examples and clarifying API behavior.

Changes:

  • Restore Java examples for wearable, Android TV, and Android Auto notification extensions.
  • Clarify JNI reference handling, semantic action values, and bubble auto-expansion.
  • Correct descriptions of notification flags and promoted ongoing eligibility.
File Description
docs/​xml/​Android.App/​Notification+WearableExtender.xml Restores notification creation and extension-reading examples.
docs/​xml/​Android.App/​Notification+TvExtender.xml Restores the TV extension example.
docs/​xml/​Android.App/​Notification+Metric+MetricValue.xml Clarifies JNI reference release and peer registration.
docs/​xml/​Android.App/​Notification+CarExtender.xml Restores the car extension example.
docs/​xml/​Android.App/​Notification+BubbleMetadata.xml Replaces an uninformative auto-expansion summary.
docs/​xml/​Android.App/​Notification+Action.xml Clarifies that semantic action values may lack public enum members.
docs/​xml/​Android.App/​Notification.xml Corrects flag and promotion eligibility descriptions.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review has no active issues requiring resolution.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I checked all seven changed patches and confirmed the notification-channel example fix. My remaining reviewer coverage gap—not a reported PR defect—is verification of the cited API 37.2 Notification.java contracts (Flags 895–919, SemanticAction 2146–2603, promotability 3749–3764, and extender examples 16463–17785), plus the pinned dotnet/android@9bc18c75 Object.cs:110–118 and JNIEnv.cs:360–393 ownership behavior. Those source ranges are not yet inspected, so this review remains queued for the next scheduled pass; no blocking issue was found in the patches inspected.

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all seven changed XML files against the pinned API 37.2 notification sources and JNI ownership implementation. The restored extender examples use a created notification channel, the semantic-action wording matches unchecked integer values, and the transfer text covers reference release and peer registration. No blocking issues found.

@jonathanpeppers
jonathanpeppers merged commit f5fb6e0 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-android-app-docs-r110-pass3 branch November 28, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants