|
|
@ -51,7 +51,7 @@ public class DrawerLayoutEx extends DrawerLayout {
|
|
|
|
void setup(Configuration config, View drawerContainer, ActionBarDrawerToggle drawerToggle) {
|
|
|
|
void setup(Configuration config, View drawerContainer, ActionBarDrawerToggle drawerToggle) {
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
|
|
|
boolean normal = config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_NORMAL);
|
|
|
|
boolean normal = config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_NORMAL);
|
|
|
|
boolean landscape3 = prefs.getBoolean("landscape3", false);
|
|
|
|
boolean landscape3 = prefs.getBoolean("landscape3", true);
|
|
|
|
|
|
|
|
|
|
|
|
if (normal && landscape3 &&
|
|
|
|
if (normal && landscape3 &&
|
|
|
|
config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
|
|
|
config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
|
|
|