Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3306c27 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Fix screenshot->long screenshot transition in RTL

The x-translation of the preview wasn't getting set correctly
in RTL.

Bug: 183197533
Test: manual
Change-Id: I6b4df38854ea7c922697f3dcdacb7d11fbb0654d
parent 8418b0ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -868,7 +868,8 @@ public class ScreenshotView extends FrameLayout implements
            matrix.setScale(scale, scale);
            matrix.postTranslate(-scrollableArea.left * scale, -scrollableArea.top * scale);

            mScrollablePreview.setTranslationX(scale * scrollableArea.left);
            mScrollablePreview.setTranslationX(scale
                    * (mDirectionLTR ? scrollableArea.left : scrollableArea.right - getWidth()));
            mScrollablePreview.setTranslationY(scale * scrollableArea.top);
            mScrollablePreview.setImageMatrix(matrix);
            mScrollablePreview.setImageBitmap(screenBitmap);