mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Disable three column mode
This commit is contained in:
@@ -32,7 +32,7 @@ import androidx.annotation.Nullable;
|
||||
import androidx.drawerlayout.widget.DrawerLayout;
|
||||
|
||||
public class DrawerLayoutEx extends DrawerLayout {
|
||||
private boolean locked;
|
||||
private boolean locked = false;
|
||||
|
||||
public DrawerLayoutEx(@NonNull Context context) {
|
||||
super(context);
|
||||
@@ -47,7 +47,9 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||
}
|
||||
|
||||
void setup(Configuration config) {
|
||||
Log.i("Drawer setup orientation=" + config.orientation);
|
||||
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
||||
|
||||
/*
|
||||
ViewGroup childContent = (ViewGroup) getChildAt(0);
|
||||
ViewGroup childDrawer = (ViewGroup) getChildAt(1);
|
||||
if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
@@ -62,6 +64,7 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||
childContent.setPaddingRelative(0, 0, 0, 0);
|
||||
closeDrawers();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user