Fix Samsung's Lollipop devices DatePicker crash
System default string resouce R.string.item_is_selected with expected pattern %s is changed to %d on Samsung's 5.x devices (S4, S5, Note 3, Core Prime etc.). This small change causes String.format() to throw exception when SimpleMonthView's content description is requested (for example Accessibility/TalkBack is ON). In case of Chromium this view is used only at DatePickerDialog. The solution is to suppress this exception on 5.x devices and give fixed string to view. This fix is based on: http://stackoverflow.com/q/28618405 R=mlamouri@chromium.org, leandrogracia@chromium.org, tkent@chromium.org BUG= crbug.com/710950 Review-Url: https://codereview.chromium.org/2790423002 Cr-Commit-Position: refs/heads/master@{#467945}
Showing
Please register or sign in to comment