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

Commit 60d25279 authored by nicolasroard's avatar nicolasroard
Browse files

Handle screen rotation

bug:7328773
Change-Id: I3c03c233a5b5a883963c8fd124c760655fd12bc7
parent c6ea0400
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@
            android:name="com.android.gallery3d.filtershow.FilterShowActivity"
            android:label="@string/title_activity_filter_show"
            android:theme="@style/Theme.Gallery"
             android:screenOrientation="portrait">
            android:configChanges="keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
                <category android:name="android.intent.category.DEFAULT" />
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ public class ImageShow extends View implements SliderListener, OnSeekBarChangeLi
            float h = w / ratio;
            float ty = (getHeight() - h) / 2.0f;
            float tx = 0;
            if (ratio < 1.0f) { // portrait image
            if (ratio < 1.0f || (getHeight() < w)) {
                h = getHeight();
                w = h * ratio;
                tx = (getWidth() - w) / 2.0f;