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

Commit 11aac847 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Fix LongScreenshotActivity rotation" into sc-dev

parents 9515d87d 97bcb3ff
Loading
Loading
Loading
Loading
+17 −14
Original line number Diff line number Diff line
@@ -250,6 +250,7 @@ public class LongScreenshotActivity extends Activity {
        Log.d(TAG, "onCachedImageLoaded(imageResult=" + imageResult + ")");
        BitmapDrawable drawable = new BitmapDrawable(getResources(), imageResult.bitmap);
        mPreview.setImageDrawable(drawable);
        mPreview.setAlpha(1f);
        mMagnifierView.setDrawable(drawable, imageResult.bitmap.getWidth(),
                imageResult.bitmap.getHeight());
        mCropView.setVisibility(View.VISIBLE);
@@ -476,6 +477,7 @@ public class LongScreenshotActivity extends Activity {
        params.height = boundaries.height();
        mTransitionView.setLayoutParams(params);

        if (mLongScreenshot != null) {
            ConstraintLayout.LayoutParams enterTransitionParams =
                    (ConstraintLayout.LayoutParams) mEnterTransitionView.getLayoutParams();
            float topFraction = Math.max(0,
@@ -492,3 +494,4 @@ public class LongScreenshotActivity extends Activity {
                    topFraction * previewHeight + mPreview.getPaddingTop() + extraPadding);
        }
    }
}