diff options
author | Yu-Han Yang <yuhany@google.com> | 2021-01-13 10:56:02 -0800 |
---|---|---|
committer | Yu-Han Yang <yuhany@google.com> | 2021-01-13 10:56:02 -0800 |
commit | 621a8ad34c2c835c09245305caec025df759707b (patch) | |
tree | 6a137b52e08cf03dc4daab4221b6f8f61ff84845 | |
parent | f80578fa27af72889dc637d6b6e5d3a0b27e8997 (diff) | |
download | SampleLocationAttribution-621a8ad34c2c835c09245305caec025df759707b.tar.gz |
Request only foreground location permission in the first request
Bug: 168191040
Test: on device
Change-Id: I16027b92103bb26e618324477e336b22bab760f8
-rw-r--r-- | OWNERS | 1 | ||||
-rw-r--r-- | src/com/example/android/locationattribution/MainActivity.java | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,3 @@ -aadmal@google.com gomo@google.com wyattriley@google.com yuhany@google.com diff --git a/src/com/example/android/locationattribution/MainActivity.java b/src/com/example/android/locationattribution/MainActivity.java index 3f72bfc..83bcdc1 100644 --- a/src/com/example/android/locationattribution/MainActivity.java +++ b/src/com/example/android/locationattribution/MainActivity.java @@ -133,8 +133,7 @@ public class MainActivity extends AppCompatActivity { private void showRequestLocationPermissionDialog() { ActivityCompat.requestPermissions(this, - new String[]{Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.ACCESS_BACKGROUND_LOCATION}, + new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, NON_FRAMEWORK_LOCATION_PERMISSION); } |