only enable layouttransitioner for large screens
This commit is contained in:
parent
feefd1fd9a
commit
e06934a1a5
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user