Three column mode improvement

pull/172/head
M66B 5 years ago
parent 61e0f7f156
commit d1bdb7f4ed

@ -499,7 +499,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
drawerLayout.setup(getResources().getConfiguration());
drawerLayout.setup(getResources().getConfiguration(), drawerContainer);
drawerToggle.syncState();
}
@ -540,7 +540,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
drawerLayout.setup(newConfig);
drawerLayout.setup(newConfig, drawerContainer);
drawerToggle.onConfigurationChanged(newConfig);
}

@ -48,7 +48,7 @@ public class DrawerLayoutEx extends DrawerLayout {
super(context, attrs, defStyle);
}
void setup(Configuration config) {
void setup(Configuration config, View drawerContainer) {
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
if (BuildConfig.DEBUG) {
@ -64,6 +64,7 @@ public class DrawerLayoutEx extends DrawerLayout {
setDrawerLockMode(LOCK_MODE_UNLOCKED);
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
childContent.setPaddingRelative(0, 0, 0, 0);
closeDrawer(drawerContainer, false);
}
}
}

Loading…
Cancel
Save