From 297270a06e0815feea075229ad08729d2d8192b5 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Mon, 4 Mar 2024 08:49:15 -0800 Subject: [PATCH 1/4] Guard against API 22 --- .../io/flutter/view/AccessibilityBridge.java | 2 +- tools/android_lint/project.xml | 320 +++++++++--------- 2 files changed, 161 insertions(+), 161 deletions(-) diff --git a/shell/platform/android/io/flutter/view/AccessibilityBridge.java b/shell/platform/android/io/flutter/view/AccessibilityBridge.java index 84b0a48d4a2e1..4536897225a23 100644 --- a/shell/platform/android/io/flutter/view/AccessibilityBridge.java +++ b/shell/platform/android/io/flutter/view/AccessibilityBridge.java @@ -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); } diff --git a/tools/android_lint/project.xml b/tools/android_lint/project.xml index 21593ab63ad0b..310d60cf3cea8 100644 --- a/tools/android_lint/project.xml +++ b/tools/android_lint/project.xml @@ -1,166 +1,166 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From eccc8aef4a512dd96644be7ccd3c898ae8992113 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Mon, 4 Mar 2024 10:03:56 -0800 Subject: [PATCH 2/4] ignore project.xml, which is autogenerated by a tool --- tools/android_lint/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/android_lint/.gitignore b/tools/android_lint/.gitignore index e44752dc2001b..f77f4ea7fb129 100644 --- a/tools/android_lint/.gitignore +++ b/tools/android_lint/.gitignore @@ -1 +1,2 @@ lint_report/ +project.xml # autogenerated by the tool, run in CI. From e868eb137450fcf4a462a5e4e0853383a492d5de Mon Sep 17 00:00:00 2001 From: Dan Field Date: Mon, 4 Mar 2024 10:05:14 -0800 Subject: [PATCH 3/4] oops --- tools/android_lint/project.xml | 166 --------------------------------- 1 file changed, 166 deletions(-) delete mode 100644 tools/android_lint/project.xml diff --git a/tools/android_lint/project.xml b/tools/android_lint/project.xml deleted file mode 100644 index 310d60cf3cea8..0000000000000 --- a/tools/android_lint/project.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 87efa24f2b95addcda0f7c5500e4bda66a3218f6 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Mon, 4 Mar 2024 10:06:06 -0800 Subject: [PATCH 4/4] oops again --- tools/android_lint/.gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/android_lint/.gitignore b/tools/android_lint/.gitignore index f77f4ea7fb129..c42d61497735f 100644 --- a/tools/android_lint/.gitignore +++ b/tools/android_lint/.gitignore @@ -1,2 +1,3 @@ lint_report/ -project.xml # autogenerated by the tool, run in CI. +# autogenerated by the tool, run in CI. +project.xml