summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMaggie <yiranwang@google.com>2018-03-16 12:22:20 -0700
committerMaggie <yiranwang@google.com>2018-03-21 12:14:47 -0700
commit83e03f55597a69bf1e1f2df2cd24e83e84d21914 (patch)
treecdf93674b539ecae33ddfea132c80e9abf9b490b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent211078e1c30ce337a96ec77508bde73b3b3ffbdf (diff)
Fix location settings bug on non-GPS devices
The old location_mode API hardcoded gps and network location provider when it enables/disables location, without checking whether the providers exist on device. It causes bugs when used together with the new LocationManager.setLocationEnabled() APIs. This fix modified LocationManager.setLocationEnabled() API when user tries to disable location on device. Besides turning off the providers from LocationManager.getAllProviders(), it also turns off GPS and network provider explicitly. To reduce times of binding to the service and chance of race condition, we also modified SettingsProvider.updateLocationProvidersAllowedLocked() to accept a string param with multiple location providers to be enabled or disalbed at the same time. Bug: 73261572 Test: Manual on chromebook Change-Id: I2e59e0d4cf395b98cd481af5d7f3c762274d7826
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions