-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix custom picker not consider rotated image #5569
base: main
Are you sure you want to change the base?
Fix custom picker not consider rotated image #5569
Conversation
[The image path of rotated image is not save like nornal image. so imageview cannot load rotated image check whether the image path is file uri then add imagerequest to load the image] [fixed: thumbnail not visible when upload rotated image]
…custom picker [Rotated image is now saved in directory where capture image is saved and image is inserted to media store] [fixed: Rotated uploaded pic not considered uploaded by custom picker]
Testing this pull request now, I am geting tthis error: screen-20240220-232741.mp4Any idea why? 🙂 |
I will test again and get back to u |
[some android sdk that is greater than 28 unable to add image to media store database] [fixed: commons-app#5384]
I have fixed the bug the phone am using is android sdk 28, that is why i use emulator to test bugs.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -3,11 +3,17 @@ package fr.free.nrw.commons.edit | |||
import android.animation.Animator | |||
import android.animation.Animator.AnimatorListener | |||
import android.animation.ValueAnimator | |||
import android.content.ContentResolver | |||
import android.content.ContentValues | |||
import android.content.Intent | |||
import android.graphics.BitmapFactory | |||
import android.graphics.Matrix | |||
import android.media.ExifInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, few nitpicks rest good.
- import android.media.ExifInterface
+ import androidx.exifinterface.media.ExifInterface
Avoid using android.media.ExifInterface
; use androidx.exifinterface.media.ExifInterface
instead
This has been deprecated due to the security issue. Its better to replace it.check this
Also IDE recommends : Avoid using android.media.ExifInterface
; use androidx.exifinterface.media.ExifInterface
instead
Description (required)
Fixes #5384
change where rotated image is saved and add image to media store
Tests performed (required)
Tested BetaDebug on Tecno Spark Air with API level 38.