Skip to content

Commit

Permalink
Ensure setViewIdResourceName has the correct version guard (flutter#6404
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonahwilliams committed Oct 4, 2018
1 parent 2c5d0c4 commit ae4db44
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {

AccessibilityNodeInfo result = AccessibilityNodeInfo.obtain(mOwner, virtualViewId);
// Work around for https://github.com/flutter/flutter/issues/2101
result.setViewIdResourceName("");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
result.setViewIdResourceName("");
}
result.setPackageName(mOwner.getContext().getPackageName());
result.setClassName("android.view.View");
result.setSource(mOwner, virtualViewId);
Expand Down

0 comments on commit ae4db44

Please sign in to comment.