only enable layouttransitioner for large screens

This commit is contained in:
Andrew Dolgov 2012-02-25 14:14:27 +03:00
parent feefd1fd9a
commit e06934a1a5
2 changed files with 8 additions and 4 deletions

View File

@ -484,9 +484,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
if (!m_compatMode) { if (!m_compatMode) {
if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) { if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) {
if (!m_smallScreenMode) {
LayoutTransition transitioner = new LayoutTransition(); LayoutTransition transitioner = new LayoutTransition();
((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner);
} }
}
m_headlinesActionModeCallback = new HeadlinesActionModeCallback(); m_headlinesActionModeCallback = new HeadlinesActionModeCallback();
} }

View File

@ -133,9 +133,11 @@ public class OfflineActivity extends FragmentActivity implements
if (!m_compatMode) { if (!m_compatMode) {
if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) { if (android.os.Build.VERSION.SDK_INT < 14 || android.os.Build.VERSION.SDK_INT == 15) {
if (!m_smallScreenMode) {
LayoutTransition transitioner = new LayoutTransition(); LayoutTransition transitioner = new LayoutTransition();
((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner); ((ViewGroup) findViewById(R.id.main)).setLayoutTransition(transitioner);
} }
}
m_headlinesActionModeCallback = new HeadlinesActionModeCallback(); m_headlinesActionModeCallback = new HeadlinesActionModeCallback();
} }