Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
kroegerama committed Jan 23, 2020
1 parent 1f1cee9 commit a4b3b9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
minSdkVersion 17
targetSdkVersion 29
versionCode 1
versionName "1.1.1"
versionName "1.1.2"
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -41,9 +41,9 @@ dependencies {
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
api 'com.google.android.material:material:1.1.0-rc01'
api 'com.google.android.material:material:1.1.0-rc02'

implementation 'com.kroegerama:android-kaiteki:2.9.0'
implementation 'com.kroegerama:android-kaiteki:2.9.1'
implementation 'com.kroegerama:recyclerview-kaiteki:1.0.10'

implementation("com.github.bumptech.glide:glide:$glide") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import android.widget.Toast
import androidx.annotation.DimenRes
import androidx.annotation.PluralsRes
import androidx.annotation.StringRes
import androidx.core.content.FileProvider
import androidx.core.view.isVisible
import androidx.fragment.app.FragmentManager
import androidx.loader.app.LoaderManager
Expand Down Expand Up @@ -229,6 +230,8 @@ class BottomSheetImagePicker internal constructor() :
currentPhotoUri = photoUri

intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri)
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)

requireContext().packageManager.queryIntentActivities(
intent,
PackageManager.MATCH_DEFAULT_ONLY
Expand Down Expand Up @@ -270,7 +273,7 @@ class BottomSheetImagePicker internal constructor() :
if (!success && BuildConfig.DEBUG) {
Log.d(TAG, "Failed to delete temp file: $image")
}
Uri.fromFile(image)
FileProvider.getUriForFile(requireContext(), providerAuthority, image)
}

@SuppressLint("SimpleDateFormat")
Expand Down

0 comments on commit a4b3b9f

Please sign in to comment.