Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
- if (requestCode == RequestCode.LOCATION_PERMISSIONS) {
- for (int grantResult : grantResults) {
- if (grantResult == PackageManager.PERMISSION_DENIED) {
- finishWithLocationServiceState(Activity.RESULT_OK, LocationTracker.PERMISSION_NOT_GRANTED);
- return;
- }
- }
- updateAndHandleLocationServiceState();
- } else {
- super.onRequestPermissionsResult(requestCode, permissions, grantResults);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement