OSDN Git Service

Make DateTimeView more robust to weird contexts.
authorDan Sandler <dsandler@android.com>
Fri, 31 Jul 2015 02:33:12 +0000 (22:33 -0400)
committerDan Sandler <dsandler@android.com>
Fri, 31 Jul 2015 02:33:12 +0000 (22:33 -0400)
commit4b67713709342dfa6d0059637aed49b457d2c62a
tree3a67272a3ab7edf7371d45668c982e96c626eb8b
parent706274f7ff9e1e7eb01f93ae80f7189de7fe6694
Make DateTimeView more robust to weird contexts.

In particular, some clients (*ahem* SystemUI) have been
known to inflate RemoteViews with unusual derived contexts
that may not have valid application contexts. DateTimeView
can now resist this.

Bug: 22852700
Change-Id: I5e91ae0e66859f5f5efd7b19c0ae6dfbc26bcc54
core/java/android/widget/DateTimeView.java