Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Guard initialization of touch exploration listener #8103

Merged
merged 3 commits into from
Mar 9, 2019

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Mar 9, 2019

The field initialization breaks older android versions

@jonahwilliams jonahwilliams merged commit 4e54bc9 into flutter:master Mar 9, 2019
@jonahwilliams jonahwilliams deleted the fix_api_a11y branch March 9, 2019 23:07
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 10, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Mar 10, 2019
…ngine#8103) (#29117)

flutter/engine@9e8f8d0...4e54bc9

git log 9e8f8d0..4e54bc9 --no-merges --oneline
4e54bc9 Guard initialization of touch exploration listener (flutter/engine#8103)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop
the roller if necessary.
@dnfield
Copy link
Contributor

dnfield commented Mar 10, 2019

/cc @mklim @matthew-carroll FYI

@@ -336,8 +318,29 @@ public void onChange(boolean selfChange, Uri uri) {
// Tell Flutter whether touch exploration is initially active or not. Then register a listener
// to be notified of changes in the future.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
touchExplorationStateChangeListener = new AccessibilityManager.TouchExplorationStateChangeListener() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally, I think we should avoid in-line anonymous definitions beyond anything more compicated than a click handler. If we can't define this up above where it was then we should define it as a static inner class. I will make this change next week.

RBogie pushed a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants