Debug three column mode

pull/172/head
M66B 6 years ago
parent 16e07f255f
commit f3c7cab833

@ -51,6 +51,7 @@ 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));
if (BuildConfig.DEBUG) {
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) {
@ -65,6 +66,7 @@ public class DrawerLayoutEx extends DrawerLayout {
childContent.setPaddingRelative(0, 0, 0, 0); childContent.setPaddingRelative(0, 0, 0, 0);
} }
} }
}
@Override @Override
protected void onRestoreInstanceState(Parcelable state) { protected void onRestoreInstanceState(Parcelable state) {

Loading…
Cancel
Save