Skip to content

Commit

Permalink
Guard against API 22 (flutter#51167)
Browse files Browse the repository at this point in the history
This was introduced in flutter#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.
  • Loading branch information
dnfield committed Mar 4, 2024
1 parent 0d8588b commit 54540a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
result.setParent(rootAccessibilityView);
}

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

Expand Down
2 changes: 2 additions & 0 deletions tools/android_lint/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
lint_report/
# autogenerated by the tool, run in CI.
project.xml
166 changes: 0 additions & 166 deletions tools/android_lint/project.xml

This file was deleted.

0 comments on commit 54540a0

Please sign in to comment.