Loading AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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" /> Loading src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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" /> Loading
src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading