mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 1240711 - (Part 3) GeckoAppShell: Do not prompt for permission if we are disabling the location service. r=nalexander
--HG-- extra : commitid : 977bKfG11jc extra : rebase_source : fb96a91a760f1f6766fd008bea422403fc096fed
This commit is contained in:
parent
0a4d223011
commit
b246f4fd3c
@ -508,6 +508,7 @@ public class GeckoAppShell
|
|||||||
.from((Activity) getContext())
|
.from((Activity) getContext())
|
||||||
.withPermissions(Manifest.permission.ACCESS_FINE_LOCATION)
|
.withPermissions(Manifest.permission.ACCESS_FINE_LOCATION)
|
||||||
.onUIThread()
|
.onUIThread()
|
||||||
|
.doNotPromptIf(!enable)
|
||||||
.run(new Runnable() {
|
.run(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user