commit | f4d207b1c2212d6e9adc3e7954a8d14c6b9abc51 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Sat Jul 17 08:21:33 2010 -0400 |
committer | Mike Lockwood <lockwood@android.com> | Sat Jul 17 08:21:33 2010 -0400 |
tree | 1dc9c49461ae15e7b6787306a49c4b89f278ee62 | |
parent | eec69d2923636b2aaa51df93bacc2b3bbb742736 [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>