Skip to content

Commit

Permalink
Fix the Read External Storage permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas7erMind committed May 5, 2024
1 parent 76df1ec commit 4389179
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
compileSdk 34
minSdkVersion 21
targetSdkVersion 34
versionCode 15
versionName "1.1.4"
versionCode 16
versionName "1.1.5"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />

<application
android:name=".ScalaVaultApplication"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/io/scalaproject/vault/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ public void onButton(int type) {
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[],
@NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);

Timber.d("onRequestPermissionsResult()");
switch (requestCode) {
case LegacyStorageHelper.PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE:
Expand Down

0 comments on commit 4389179

Please sign in to comment.