mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fixes App crashes on clicking Save (EditActivity) (#5670)
* Fixed Grey empty screen at Upload wizard caption step after denying files permission * Empty commit * Fixed loop issue * Created docs for earlier commits * Fixed javadoc * Fixed spaces * Added added basic features to OSM Maps * Added search location feature * Added filter to Open Street Maps * Fixed chipGroup in Open Street Maps * Removed mapBox code * Removed mapBox's code * Reformat code * Reformatted code * Removed rotation feature to map * Removed rotation files and Fixed Marker click problem * Ignored failing tests * Added voice input feature * Fixed test cases * Changed caption and description text * Replaced mapbox to osmdroid in upload activity * Fixed Unit Tests * Made selected marker to be fixed on map * Changed color of map marker * Fixes #5439 by capitalizing first letter of voice input * Removed mapbox code1 * Removed mapbox code2 * Fixed failing tests * Fixed failing due to merging * Added feature to save nearby places as GPX and KML * Fixed error caused by null * Improved UX for Nearby Export * Delete app/src/main/res/values-yue-hant directory * Fixed internationalization issue * Fixed crash
This commit is contained in:
parent
5ca3b7834d
commit
7dd00efa64
1 changed files with 5 additions and 2 deletions
|
|
@ -237,8 +237,11 @@ class EditActivity : AppCompatActivity() {
|
||||||
if (rotatedImage == null) {
|
if (rotatedImage == null) {
|
||||||
Toast.makeText(this, "Failed to rotate to image", Toast.LENGTH_LONG).show()
|
Toast.makeText(this, "Failed to rotate to image", Toast.LENGTH_LONG).show()
|
||||||
}
|
}
|
||||||
val editedImageExif = rotatedImage?.path?.let { ExifInterface(it) }
|
val editedImageExif: ExifInterface?
|
||||||
|
if (rotatedImage?.path != null) {
|
||||||
|
editedImageExif = ExifInterface(rotatedImage.path)
|
||||||
copyExifData(editedImageExif)
|
copyExifData(editedImageExif)
|
||||||
|
}
|
||||||
val resultIntent = Intent()
|
val resultIntent = Intent()
|
||||||
resultIntent.putExtra("editedImageFilePath", rotatedImage?.toUri()?.path ?: "Error");
|
resultIntent.putExtra("editedImageFilePath", rotatedImage?.toUri()?.path ?: "Error");
|
||||||
setResult(RESULT_OK, resultIntent);
|
setResult(RESULT_OK, resultIntent);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue