mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
fix: thumbnail of rotated image not visible during upload (#5552)
[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]
This commit is contained in:
parent
2d333a2af0
commit
751bc6ce6b
1 changed files with 5 additions and 1 deletions
|
|
@ -90,7 +90,11 @@ public class ContributionViewHolder extends RecyclerView.ViewHolder {
|
|||
imageRequest = ImageRequestBuilder.newBuilderWithSource(Uri.parse(imageSource))
|
||||
.setProgressiveRenderingEnabled(true)
|
||||
.build();
|
||||
} else if(imageSource != null) {
|
||||
}
|
||||
else if (URLUtil.isFileUrl(imageSource)){
|
||||
imageRequest=ImageRequest.fromUri(Uri.parse(imageSource));
|
||||
}
|
||||
else if(imageSource != null) {
|
||||
final File file = new File(imageSource);
|
||||
imageRequest = ImageRequest.fromFile(file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue