fix #1221, allow batch rotating only images

This commit is contained in:
tibbi 2019-01-22 20:36:30 +01:00
parent 301ac6dfb0
commit 9f53213c48

View file

@ -278,7 +278,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
private fun rotateSelection(degrees: Int) { private fun rotateSelection(degrees: Int) {
activity.toast(R.string.saving) activity.toast(R.string.saving)
Thread { Thread {
val paths = getSelectedPaths() val paths = getSelectedPaths().filter { it.isImageFast() }
var fileCnt = paths.size var fileCnt = paths.size
paths.forEach { paths.forEach {
activity.saveRotatedImageToFile(it, it, degrees) { activity.saveRotatedImageToFile(it, it, degrees) {