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

Commit 54540a0

Browse files
authored
Guard against API 22 (#51167)
This was introduced in #51070 - my grepping for `LOLLIPOP` was too aggressive, and apparently the linter didn't catch this. I think it's just a bug in the linter. Fixes b/327717572, because Google internal tests caught this.
1 parent 0d8588b commit 54540a0

File tree

3 files changed

+3
-167
lines changed

3 files changed

+3
-167
lines changed

shell/platform/android/io/flutter/view/AccessibilityBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
763763
result.setParent(rootAccessibilityView);
764764
}
765765

766-
if (semanticsNode.previousNodeId != -1) {
766+
if (semanticsNode.previousNodeId != -1 && Build.VERSION.SDK_INT >= 22) {
767767
result.setTraversalAfter(rootAccessibilityView, semanticsNode.previousNodeId);
768768
}
769769

tools/android_lint/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
lint_report/
2+
# autogenerated by the tool, run in CI.
3+
project.xml

tools/android_lint/project.xml

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)