mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-02 15:19:15 +02:00
update commons to 4.3.30
This commit is contained in:
parent
9cb353d0b5
commit
42e8fd3183
@ -45,7 +45,7 @@ ext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:4.3.29'
|
implementation 'com.simplemobiletools:commons:4.3.30'
|
||||||
|
|
||||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
||||||
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
||||||
|
@ -82,6 +82,7 @@ class PhotoProcessor(val activity: MainActivity, val saveUri: Uri?, val deviceOr
|
|||||||
val deviceRot = compensateDeviceRotation(deviceOrientation, isUsingFrontCamera)
|
val deviceRot = compensateDeviceRotation(deviceOrientation, isUsingFrontCamera)
|
||||||
var image = BitmapFactory.decodeByteArray(data, 0, data.size)
|
var image = BitmapFactory.decodeByteArray(data, 0, data.size)
|
||||||
val totalRotation = (imageRot + deviceRot + previewRotation) % 360
|
val totalRotation = (imageRot + deviceRot + previewRotation) % 360
|
||||||
|
|
||||||
if (path.startsWith(activity.internalStoragePath) || isNougatPlus() && !isThirdPartyIntent) {
|
if (path.startsWith(activity.internalStoragePath) || isNougatPlus() && !isThirdPartyIntent) {
|
||||||
// do not rotate the image itself in these cases, rotate it by exif only
|
// do not rotate the image itself in these cases, rotate it by exif only
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user