From e06934a1a5f909d0a3563b82df57584af239311f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2012 14:14:27 +0300 Subject: [PATCH] only enable layouttransitioner for large screens --- src/org/fox/ttrss/MainActivity.java | 6 ++++-- src/org/fox/ttrss/OfflineActivity.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index e1aece8c..dd3295c8 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -484,8 +484,10 @@ public class MainActivity extends FragmentActivity implements OnlineServices { if (!m_compatMode) { if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) { - LayoutTransition transitioner = new LayoutTransition(); - ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); + if (!m_smallScreenMode) { + LayoutTransition transitioner = new LayoutTransition(); + ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); + } } m_headlinesActionModeCallback = new HeadlinesActionModeCallback(); diff --git a/src/org/fox/ttrss/OfflineActivity.java b/src/org/fox/ttrss/OfflineActivity.java index 087a9758..7369ca0b 100644 --- a/src/org/fox/ttrss/OfflineActivity.java +++ b/src/org/fox/ttrss/OfflineActivity.java @@ -133,8 +133,10 @@ public class OfflineActivity extends FragmentActivity implements if (!m_compatMode) { if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) { - LayoutTransition transitioner = new LayoutTransition(); - ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); + if (!m_smallScreenMode) { + LayoutTransition transitioner = new LayoutTransition(); + ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); + } } m_headlinesActionModeCallback = new HeadlinesActionModeCallback();