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

Issue 1412483006: Notification custom layouts: use DateTimeView instead of TextView. (Closed)

Created:
5 years, 1 month ago by Michael van Ouwerkerk
Modified:
5 years, 1 month ago
Reviewers:
Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@CustomLayoutsTextStyling
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notification custom layouts: use DateTimeView instead of TextView. * Displays the time if |input time| is on the same day or within 12 hours of |now|. Otherwise displays the date. * Dynamically handles settings changes between 12 and 24 hour format. * Adjustments to spacing so it looks good in Material (Holo will come later). BUG=541617 Closed without submitting: we can never use hidden classes.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M chrome/android/java/res/layout/web_notification.xml View 1 chunk +4 lines, -1 line 1 comment Download
M chrome/android/java/res/layout/web_notification_big.xml View 1 chunk +6 lines, -3 lines 1 comment Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java View 3 chunks +2 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (6 generated)
Michael van Ouwerkerk
Peter, can you do a general review please?
5 years, 1 month ago (2015-10-27 17:38:47 UTC) #3
Michael van Ouwerkerk
Newton, can you do a UI owner review please?
5 years, 1 month ago (2015-10-27 17:39:14 UTC) #5
Peter Beverloo
lgtm Does the framework implement this using reflection? :o https://codereview.chromium.org/1412483006/diff/1/chrome/android/java/res/layout/web_notification.xml File chrome/android/java/res/layout/web_notification.xml (right): https://codereview.chromium.org/1412483006/diff/1/chrome/android/java/res/layout/web_notification.xml#newcode60 chrome/android/java/res/layout/web_notification.xml:60: ...
5 years, 1 month ago (2015-10-27 18:17:21 UTC) #6
newt (away)
DateTimeView is undocumented and marked @Hide. I'm surprised this even compiles and runs. Is there ...
5 years, 1 month ago (2015-10-27 21:30:00 UTC) #7
Michael van Ouwerkerk
5 years, 1 month ago (2015-10-28 17:09:43 UTC) #8
On 2015/10/27 21:30:00, newt wrote:
> DateTimeView is undocumented and marked @Hide. I'm surprised this even
compiles
> and runs. Is there any reason to believe that it's safe to use?

You're right, it seems there are no guarantees against runtime exceptions with
@hide. I'm looking for an alternative solution.

Powered by Google App Engine
This is Rietveld 408576698