mirror of https://github.com/M66B/FairEmail.git
Disable three column mode
This commit is contained in:
parent
e1884a6e8e
commit
cac3b336b8
|
@ -155,7 +155,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
|
||||
drawerLayout = findViewById(R.id.drawer_layout);
|
||||
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) {
|
||||
public void onDrawerClosed(View view) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue