Skip to content

Commit

Permalink
Fix: Request permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
titi0267 committed Feb 17, 2024
1 parent 3e1796e commit aca4069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3
- name: Execute Gradle build
env: # Or as an environment variable
MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions android/app/src/main/java/com/opticarbu/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ protected String getMainComponentName() {
return "GasPrices";
}

@Override
private ActivityResultLauncher<String> requestPermissionLauncher = registerForActivityResult(new RequestPermission(), isGranted ->
{
if (ContextCompat.checkSelfPermission( this,android.Manifest.permission.ACCESS_COARSE_LOCATION ) != PackageManager.PERMISSION_GRANTED ) {
Expand All @@ -26,7 +25,7 @@ protected String getMainComponentName() {
LocationService.MY_PERMISSION_ACCESS_COURSE_LOCATION
);
}
})
});

/**
* Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
Expand Down

0 comments on commit aca4069

Please sign in to comment.