mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
simplifying some code at image rotating
This commit is contained in:
@ -618,9 +618,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||||||
return@getFileOutputStream
|
return@getFileOutputStream
|
||||||
}
|
}
|
||||||
|
|
||||||
val oldLastModified = getCurrentFile().lastModified()
|
val oldLastModified = File(oldPath).lastModified()
|
||||||
if (oldPath.isJpg()) {
|
if (oldPath.isJpg()) {
|
||||||
copyFile(getCurrentPath(), tmpPath)
|
copyFile(oldPath, tmpPath)
|
||||||
saveExifRotation(ExifInterface(tmpPath), mRotationDegrees)
|
saveExifRotation(ExifInterface(tmpPath), mRotationDegrees)
|
||||||
} else {
|
} else {
|
||||||
val inputstream = getFileInputStreamSync(oldPath)
|
val inputstream = getFileInputStreamSync(oldPath)
|
||||||
|
Reference in New Issue
Block a user