simplifying some code at image rotating

This commit is contained in:
tibbi 2019-01-13 20:38:42 +01:00
parent 247b41445d
commit 745adda5a4

View file

@ -618,9 +618,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
return@getFileOutputStream
}
val oldLastModified = getCurrentFile().lastModified()
val oldLastModified = File(oldPath).lastModified()
if (oldPath.isJpg()) {
copyFile(getCurrentPath(), tmpPath)
copyFile(oldPath, tmpPath)
saveExifRotation(ExifInterface(tmpPath), mRotationDegrees)
} else {
val inputstream = getFileInputStreamSync(oldPath)