Skip to content

Commit

Permalink
remove unused PERMISSION_REQUEST_CODE_CAMERA (fixes #2288) (#2289)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Aug 15, 2023
1 parent 68129fb commit 60d345a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 19
targetSdkVersion 33
versionCode 965
versionName "0.9.65"
versionCode 966
versionName "0.9.66"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

public abstract class PermissionActivity extends AppCompatActivity {
private static final int PERMISSION_REQUEST_CODE_FILE = 111;
private static final int PERMISSION_REQUEST_CODE_CAMERA = 112;

public boolean checkPermission(String strPermission) {
int result = ContextCompat.checkSelfPermission(this, strPermission);
Expand Down Expand Up @@ -101,7 +100,7 @@ public void requestAllPermissions() {
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == PERMISSION_REQUEST_CODE_FILE || requestCode == PERMISSION_REQUEST_CODE_CAMERA) {
if (requestCode == PERMISSION_REQUEST_CODE_FILE) {
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Toast.makeText(this, R.string.permissions_granted, Toast.LENGTH_SHORT).show();
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/versions.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_version">0.9.65</string>
<string name="app_version">0.9.66</string>
</resources>

0 comments on commit 60d345a

Please sign in to comment.