summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2013-08-16 11:56:35 -0700
committer Elliott Hughes <enh@google.com> 2013-08-16 11:56:35 -0700
commit8d8ef00c8276200f108433922761401817fd9a50 (patch)
tree974a79d7a8c04ade1eae1068ea596ebfa5080661 /libs/input/SpriteController.cpp
parent82461951c3bddd5e6873dbb66703b838cbb66b2c (diff)
Fix NPE in DateFormat.is24HourFormat.
In some cases, we end up being called by code that doesn't have a valid Context. It got away with this historically because it wasn't formatting times (just dates), so it never went down a path that tried to query the user's 12/24-hour preference. This patch just ensures that we don't try to get the preference unless we actually need it. Bug: 10339015 Change-Id: I2df466d85cdeba14dbf882498808cbad9bbb57f4
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions