Debug three column mode

This commit is contained in:
M66B 2020-01-02 19:22:33 +01:00
parent 16e07f255f
commit f3c7cab833
1 changed files with 14 additions and 12 deletions

View File

@ -51,6 +51,7 @@ public class DrawerLayoutEx extends DrawerLayout {
void setup(Configuration config) {
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
if (BuildConfig.DEBUG) {
ViewGroup childContent = (ViewGroup) getChildAt(0);
ViewGroup childDrawer = (ViewGroup) getChildAt(1);
if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
@ -65,6 +66,7 @@ public class DrawerLayoutEx extends DrawerLayout {
childContent.setPaddingRelative(0, 0, 0, 0);
}
}
}
@Override
protected void onRestoreInstanceState(Parcelable state) {