Skip to content

Commit

Permalink
Add version check for dismissable (flutter#6522)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Oct 12, 2018
1 parent 7767c78 commit 436f970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
// TODO(jonahwilliams): Figure out a way conform to the expected id from TalkBack's
// CustomLabelManager. talkback/src/main/java/labeling/CustomLabelManager.java#L525
}
if (object.hasAction(Action.DISMISS)) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2 && object.hasAction(Action.DISMISS)) {
result.setDismissable(true);
result.addAction(AccessibilityNodeInfo.ACTION_DISMISS);
}
Expand Down

0 comments on commit 436f970

Please sign in to comment.