)]}'
{
  "commit": "016b17b6b76db7ebff5d747d725ef8b47bccee67",
  "tree": "ea400237b9133883d1ac09d04349ad5b3bdf3a80",
  "parents": [
    "a0b6113a728dbe544d16d327fd2f9c4d29806617"
  ],
  "author": {
    "name": "Gray Mackall",
    "email": "34871572+gmackall@users.noreply.github.com",
    "time": "Fri Sep 11 18:23:20 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Sep 11 18:23:20 2026 +0000"
  },
  "message": "[android] Isolate API-34 high contrast listener in AccessibilityBridge behind Api34Impl (#192502)\n\nIsolates API-34 `UiModeManager.ContrastChangeListener` and related\ncontrast calls in `AccessibilityBridge` inside an\n`@RequiresApi(API_LEVELS.API_34)` static holder class (`Api34Impl`) with\n`@DoNotInline`.\n\n### Background / Root Cause\n\nOn Android 12 and 13 (API \u003c 34), `AccessibilityBridge` previously\nevaluated a ternary merge point in `\u003cinit\u003e` between a lambda cast to\n`(ContrastChangedListener \u0026 UiModeManager.ContrastChangeListener)` and a\nno-op fallback. D8 desugars this intersection cast into a synthetic\nclass implementing `UiModeManager.ContrastChangeListener`. Because this\nternary join occurs in `\u003cinit\u003e`, the ART verifier attempts to resolve\nthe synthetic class and its unimplemented interface when loading\n`AccessibilityBridge`, failing with `NoClassDefFoundError: Failed\nresolution of: Lt2;` (`ClassNotFoundException:\nandroid.app.UiModeManager$ContrastChangeListener`).\n\nBy moving all references to `UiModeManager.ContrastChangeListener` into\n`Api34Impl` and holding the observer as an `Object` reference on\n`AccessibilityBridge`, ART never attempts to load or verify the API-34\ntypes on devices with API \u003c 34.\n\nFixes https://github.com/flutter/flutter/issues/192231\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [ ] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [ ] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [ ] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[flutter/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md\n\n---\n\n*This pull request was generated with Gemini / AI assistance.*",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "84a81a9f4394c3134fbe31faf921634b2592cf26",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java",
      "new_id": "81f210a414ae85c4959bdf6ca7a69edefb51bfe8",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java"
    },
    {
      "type": "modify",
      "old_id": "d94cd1af4bad6b326df59db8489b72ed72dafed4",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java",
      "new_id": "960af94d8b25f93045b031d5fa817b557019f1c8",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java"
    }
  ]
}
