Disable three column mode

This commit is contained in:
M66B 2020-01-02 10:52:41 +01:00
parent e1884a6e8e
commit cac3b336b8
2 changed files with 5 additions and 3 deletions

View File

@ -155,7 +155,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
drawerLayout = findViewById(R.id.drawer_layout); drawerLayout = findViewById(R.id.drawer_layout);
drawerLayout.setup(getResources().getConfiguration()); drawerLayout.setup(getResources().getConfiguration());
// drawerLayout.setScrimColor(Helper.resolveColor(this, R.attr.colorDrawerScrim));
drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.app_name, R.string.app_name) { drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.app_name, R.string.app_name) {
public void onDrawerClosed(View view) { public void onDrawerClosed(View view) {

View File

@ -32,7 +32,7 @@ import androidx.annotation.Nullable;
import androidx.drawerlayout.widget.DrawerLayout; import androidx.drawerlayout.widget.DrawerLayout;
public class DrawerLayoutEx extends DrawerLayout { public class DrawerLayoutEx extends DrawerLayout {
private boolean locked; private boolean locked = false;
public DrawerLayoutEx(@NonNull Context context) { public DrawerLayoutEx(@NonNull Context context) {
super(context); super(context);
@ -47,7 +47,9 @@ public class DrawerLayoutEx extends DrawerLayout {
} }
void setup(Configuration config) { void setup(Configuration config) {
Log.i("Drawer setup orientation=" + config.orientation); setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
/*
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) {
@ -62,6 +64,7 @@ public class DrawerLayoutEx extends DrawerLayout {
childContent.setPaddingRelative(0, 0, 0, 0); childContent.setPaddingRelative(0, 0, 0, 0);
closeDrawers(); closeDrawers();
} }
*/
} }
@Override @Override