summaryrefslogtreecommitdiff
path: root/libs/hwui/Program.cpp
diff options
context:
space:
mode:
author Mike Lockwood <lockwood@android.com> 2010-07-17 08:21:33 -0400
committer Mike Lockwood <lockwood@android.com> 2010-07-17 08:21:33 -0400
commitf4d207b1c2212d6e9adc3e7954a8d14c6b9abc51 (patch)
tree1dc9c49461ae15e7b6787306a49c4b89f278ee62 /libs/hwui/Program.cpp
parenteec69d2923636b2aaa51df93bacc2b3bbb742736 (diff)
Don't throw an exception from isProviderEnabled and getLastKnownLocation
if the location provider does not exist. Instead use the same behavior as if the provider were disabled in settings (return false for isProviderEnabled and null from getLastKnownLocation). This eliminates for a lot of exception handling around some simple queries to the location manager. BUG: 2841014 Change-Id: I4fbe0c088e915c90969e13083201dd3e7f4029cb Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'libs/hwui/Program.cpp')
0 files changed, 0 insertions, 0 deletions