forked from apache/cordova-plugin-camera
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-341 - apacheGH-577 Fixed the Save Photo To Album starting fr…
…om camera - Android - saveToPhotoAlbum feature fixed by taken into count content - uri. (writeUncompressedImage method) ( see: apache#611 (comment) ) - make saveToPhotoAlbum future proof by using the MediaStore to insert the taken image - made a method to calculate the compressFormat based on the encodingType (JPEG or PNG) - layout of the performCrop method is adjusted - removed unused rotate variable inside processResultFromGallery method
- Loading branch information
1 parent
5ae56cf
commit af480bc
Showing
2 changed files
with
106 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
public class GalleryPathVO { | ||
private final String galleryPath; | ||
private String picturesDirectory; | ||
private String galleryFileName; | ||
|
||
public GalleryPathVO(String picturesDirectory, String galleryFileName) { | ||
this.picturesDirectory = picturesDirectory; | ||
this.galleryFileName = galleryFileName; | ||
this.galleryPath = this.picturesDirectory + "/" + this.galleryFileName; | ||
} | ||
|
||
public String getGalleryPath() { | ||
return galleryPath; | ||
} | ||
|
||
public String getPicturesDirectory() { | ||
return picturesDirectory; | ||
} | ||
|
||
public String getGalleryFileName() { | ||
return galleryFileName; | ||
} | ||
} |