mirror of https://github.com/M66B/FairEmail.git
Debug three column mode
This commit is contained in:
parent
16e07f255f
commit
f3c7cab833
|
@ -51,18 +51,20 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||||
void setup(Configuration config) {
|
void setup(Configuration config) {
|
||||||
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
||||||
|
|
||||||
ViewGroup childContent = (ViewGroup) getChildAt(0);
|
if (BuildConfig.DEBUG) {
|
||||||
ViewGroup childDrawer = (ViewGroup) getChildAt(1);
|
ViewGroup childContent = (ViewGroup) getChildAt(0);
|
||||||
if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
ViewGroup childDrawer = (ViewGroup) getChildAt(1);
|
||||||
locked = true;
|
if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
setDrawerLockMode(LOCK_MODE_LOCKED_OPEN);
|
locked = true;
|
||||||
setScrimColor(Color.TRANSPARENT);
|
setDrawerLockMode(LOCK_MODE_LOCKED_OPEN);
|
||||||
childContent.setPaddingRelative(childDrawer.getLayoutParams().width, 0, 0, 0);
|
setScrimColor(Color.TRANSPARENT);
|
||||||
} else {
|
childContent.setPaddingRelative(childDrawer.getLayoutParams().width, 0, 0, 0);
|
||||||
locked = false;
|
} else {
|
||||||
setDrawerLockMode(LOCK_MODE_UNLOCKED);
|
locked = false;
|
||||||
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
setDrawerLockMode(LOCK_MODE_UNLOCKED);
|
||||||
childContent.setPaddingRelative(0, 0, 0, 0);
|
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
||||||
|
childContent.setPaddingRelative(0, 0, 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue