Small fix

This commit is contained in:
M66B 2020-01-03 09:47:21 +01:00
parent 99830ecbf4
commit 9530fca776
1 changed files with 2 additions and 1 deletions

View File

@ -54,8 +54,9 @@ public class DrawerLayoutEx extends DrawerLayout {
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim)); setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean landscape = prefs.getBoolean("landscape", true);
boolean landscape3 = prefs.getBoolean("landscape3", false); boolean landscape3 = prefs.getBoolean("landscape3", false);
if (landscape3) { if (landscape && landscape3) {
ViewGroup childContent = (ViewGroup) getChildAt(0); ViewGroup childContent = (ViewGroup) getChildAt(0);
ViewGroup childDrawer = (ViewGroup) getChildAt(1); ViewGroup childDrawer = (ViewGroup) getChildAt(1);
if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) { if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {