-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
shell/platform/android/io/flutter/embedding/engine/android/FlutterSurfaceView.java
Outdated
Show resolved
Hide resolved
@@ -242,7 +251,7 @@ private boolean extractUpdate(File dataDir) { | |||
for (String asset : mResources) { | |||
String resource = null; | |||
ZipEntry entry = null; | |||
if (asset.endsWith(".so")) { | |||
if (asset.endsWith(".so") && Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not being able to fetch these on older SDKs may be a bug? Build.SUPPORTED_ABIS
is the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be better to guard the for loop with this, and in the else block just get it from "lib/" + asset;
or whatever the appropriate non-ABI aware thing is for lower APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here again with mixing SDK checks and app logic.
shell/platform/android/io/flutter/embedding/engine/android/FlutterSurfaceView.java
Outdated
Show resolved
Hide resolved
shell/platform/android/io/flutter/embedding/engine/android/FlutterView.java
Outdated
Show resolved
Hide resolved
@@ -325,7 +327,7 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) { | |||
result.setClassName("android.widget.HorizontalScrollView"); | |||
} | |||
} else { | |||
if (shouldSetCollectionInfo(object)) { | |||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2 && shouldSetCollectionInfo(object)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and elsewhere, can you add comments about what happens if the SDK versions are not met?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to the inline comments above this block.
shell/platform/android/io/flutter/view/AccessibilityBridge.java
Outdated
Show resolved
Hide resolved
@@ -242,7 +251,7 @@ private boolean extractUpdate(File dataDir) { | |||
for (String asset : mResources) { | |||
String resource = null; | |||
ZipEntry entry = null; | |||
if (asset.endsWith(".so")) { | |||
if (asset.endsWith(".so") && Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here again with mixing SDK checks and app logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch should address all pending feedback. Let me know if I missed something and I'll circle back.
@@ -325,7 +327,7 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) { | |||
result.setClassName("android.widget.HorizontalScrollView"); | |||
} | |||
} else { | |||
if (shouldSetCollectionInfo(object)) { | |||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2 && shouldSetCollectionInfo(object)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to the inline comments above this block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will you be able to document what's not supported here? Do we have an issue filed to track that?
Filed flutter/flutter#29019 to track the Accessibility gap. I'm good to document it further if you think it should have its own wiki page. I thought an issue made sense for now since we probably do want to close this gap though. The other larger uncovered gap here is with the |
LGTM - would be helpful if this could land after AccessibilityBridge comments and refactor: |
Revert those failures. Also actually fix up the relative paths in the linter XML files.
Discussed offline, that PR is blocked on these lint failures. Going to merge this first and fix conflicts there. |
flutter/engine@87edd94...c48774c git log 87edd94..c48774c --no-merges --oneline c48774c Roll src/third_party/dart 571ea80e11..2fb6cd9f5f (122 commits) (flutter/engine#8086) 3c8ef04 Allow embedders to post tasks onto the render thread. (flutter/engine#8089) 1d10e0e Guard against NewAPI failures (flutter/engine#8048) 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.
PR flutter#8048 in flutter/engine produced a bug (flutter/flutter flutter#34791) in flutter for Android that doesn't permit the Recents app bar color to be changed. This restores the original arguments to the function found in the previous version (https://github.com/flutter/engine/blob/2f4a38dbd33061e950cf83ddc31785803d58c126/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java) of PlatformPlugin.java while preserving the enhancements for the linter.
This is a fix for [flutter/flutter issue #34791](flutter/flutter#34791). PR #8048 in flutter/engine produced a bug/regression (flutter/flutter #34791) in flutter for Android that doesn't permit the Recents app bar color to be changed. This restores the original arguments to the function found in the previous version (https://github.com/flutter/engine/blob/2f4a38dbd33061e950cf83ddc31785803d58c126/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java) of PlatformPlugin.java while preserving the enhancements for the linter. I've compiled and tested this fix locally. The bar changes color again.
The Java linter is pointing out some code paths that will cause crashes in older supported API versions. Most of this PR is just adding clear guards for code paths that look like they wouldn't effectively have been executed in lower SDKs anyway, but I did see a couple cases here that look pretty suspicious. We may want to file followup bugs for them.
flutter/flutter#28848