Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Issue 2790423002: Fix Samsung's Lollipop devices DatePicker crash (Closed)

Created:
3 years, 8 months ago by Ilya Tskhay
Modified:
3 years, 7 months ago
Reviewers:
tkent, Ted C, boliu
CC:
agrieve+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri (slow - plz ping)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/5db6d1582b5525b719efa7fe0206a8b820edd0bc

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixed context is inner class now + small fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -1 line) Patch
M content/public/android/java/src/org/chromium/content/browser/picker/DateTimePickerDialog.java View 1 4 chunks +83 lines, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
Ilya Tskhay
3 years, 8 months ago (2017-04-04 14:56:41 UTC) #1
Ilya Tskhay
3 years, 8 months ago (2017-04-04 14:58:43 UTC) #2
mlamouri (slow - plz ping)
Dropping myself from reviewer as I don't think I'm the right person to review this.
3 years, 8 months ago (2017-04-04 15:01:35 UTC) #3
tkent
+tedchoc. I also don't understand this change, and can't review it.
3 years, 8 months ago (2017-04-05 01:50:07 UTC) #5
Ted C
On 2017/04/05 01:50:07, tkent wrote: > +tedchoc. > > I also don't understand this change, ...
3 years, 8 months ago (2017-04-05 16:54:30 UTC) #6
Ilya Tskhay
On 2017/04/05 16:54:30, Ted C wrote: > On 2017/04/05 01:50:07, tkent wrote: > > +tedchoc. ...
3 years, 8 months ago (2017-04-05 18:27:06 UTC) #7
Ted C
General naming/placement thoughts, but overall this seems OK (in a begrudging, grumbly, sad we have ...
3 years, 8 months ago (2017-04-12 17:24:40 UTC) #12
boliu
is this really still a problem? our crash reporting says we haven't seen anything like ...
3 years, 8 months ago (2017-04-12 17:47:06 UTC) #13
boliu
On 2017/04/12 17:47:06, boliu wrote: > is this really still a problem? our crash reporting ...
3 years, 8 months ago (2017-04-12 18:14:00 UTC) #14
Ilya Tskhay
On 2017/04/12 18:14:00, boliu wrote: > On 2017/04/12 17:47:06, boliu wrote: > > is this ...
3 years, 8 months ago (2017-04-13 06:46:34 UTC) #16
Ilya Tskhay
FixedStringResourceContext renamed and moved inside DateTimePickerDialog https://codereview.chromium.org/2790423002/diff/1/content/public/android/java/src/org/chromium/content/browser/picker/FixedStringResourceContext.java File content/public/android/java/src/org/chromium/content/browser/picker/FixedStringResourceContext.java (right): https://codereview.chromium.org/2790423002/diff/1/content/public/android/java/src/org/chromium/content/browser/picker/FixedStringResourceContext.java#newcode23 content/public/android/java/src/org/chromium/content/browser/picker/FixedStringResourceContext.java:23: * Workaround for ...
3 years, 8 months ago (2017-04-13 07:39:31 UTC) #19
Ted C
lgtm I do agree with Bo that this is more complicated than I'd like, but ...
3 years, 8 months ago (2017-04-13 15:50:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790423002/20001
3 years, 7 months ago (2017-04-28 09:09:13 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 09:54:42 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5db6d1582b5525b719efa7fe0206...

Powered by Google App Engine
This is Rietveld 408576698