summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-08-16 11:56:35 -0700
committerElliott Hughes <enh@google.com>2013-08-16 14:53:26 -0700
commitf9818d33f94686ee9c80697ec79ef557a7b77176 (patch)
tree42b6f0b33413866ba7fc29b820ed3af039e81093 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3c226bf6acea0b8dff34a2113009b6d918a3af65 (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 (cherry picked from commit 8d8ef00c8276200f108433922761401817fd9a50) Change-Id: If074a67fa52943c0ec7bb5c5bbe5a11f54fb1f97
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions