From 6c019c8edc9bba635aaad05ddef81c21fc941753 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 14 Jan 2019 21:13:36 +0100 Subject: [PATCH] removing a redundant call --- .../gallery/pro/activities/VideoPlayerActivity.kt | 2 +- .../simplemobiletools/gallery/pro/fragments/VideoFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index 0628708ee..8ff3686ef 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -808,7 +808,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen } mRight = width * mSaveScale - width - mBottom = video_surface.height * mSaveScale - height + mBottom = height * mSaveScale - height if (0 <= width || 0 <= height) { mMatrix.postScale(scaleFactor, scaleFactor, detector.focusX, detector.focusY) if (scaleFactor < 1) { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index 4005a52c8..01e626289 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -792,7 +792,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } mRight = width * mSaveScale - width - mBottom = mTextureView.height * mSaveScale - height + mBottom = height * mSaveScale - height if (0 <= width || 0 <= height) { mMatrix.postScale(scaleFactor, scaleFactor, detector.focusX, detector.focusY) if (scaleFactor < 1) {