From eb140e136686a6c72f13083b8a994112c755ffb2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 27 Nov 2011 12:03:45 +0300 Subject: [PATCH] fix upside-down orientation handling --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/MainActivity.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b94ff8aa..f125c430 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="11" + android:versionName="0.1.10"> diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index b1c2b362..6212f2e4 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -115,8 +115,8 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe Display display = getWindowManager().getDefaultDisplay(); int orientation = display.getOrientation(); - int minWidth = orientation == 0 ? 1024 : 600; - int minHeight = orientation == 0 ? 600 : 1024; + int minWidth = orientation % 2 == 0 ? 1024 : 600; + int minHeight = orientation % 2 == 0 ? 600 : 1024; if (display.getWidth() > minWidth && display.getHeight() >= minHeight) { m_smallScreenMode = false;