@@ -40,7 +40,7 @@ public class MainActivity extends AppCompatActivity {
4040### Request Permissions
4141
4242The example below shows how to request permissions for a method that requires both
43- ` CAMERA ` and ` CHANGE_WIFI_STATE ` permissions. There are a few things to note:
43+ ` CAMERA ` and ` ACCESS_FINE_LOCATION ` permissions. There are a few things to note:
4444
4545 * Using ` EasyPermissions#hasPermissions(...) ` to check if the app already has the
4646 required permissions. This method can take any number of permissions as its final
@@ -56,16 +56,16 @@ The example below shows how to request permissions for a method that requires bo
5656 This can also be achieved by adding logic on the ` onPermissionsGranted ` callback.
5757
5858``` java
59- @AfterPermissionGranted (RC_CAMERA_AND_WIFI )
59+ @AfterPermissionGranted (RC_CAMERA_AND_LOCATION )
6060private void methodRequiresTwoPermission() {
61- String [] perms = {Manifest . permission. CAMERA , Manifest . permission. CHANGE_WIFI_STATE };
61+ String [] perms = {Manifest . permission. CAMERA , Manifest . permission. ACCESS_FINE_LOCATION };
6262 if (EasyPermissions . hasPermissions(this , perms)) {
6363 // Already have permission, do the thing
6464 // ...
6565 } else {
6666 // Do not have permissions, request them now
67- EasyPermissions . requestPermissions(this , getString(R . string. camera_and_wifi_rationale ),
68- RC_CAMERA_AND_WIFI , perms);
67+ EasyPermissions . requestPermissions(this , getString(R . string. camera_and_location_rationale ),
68+ RC_CAMERA_AND_LOCATION , perms);
6969 }
7070}
7171```
0 commit comments