simplifying some code at image rotating
This commit is contained in:
parent
247b41445d
commit
745adda5a4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue