mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 12:54:11 +01:00
Three column mode improvement
This commit is contained in:
@@ -499,7 +499,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||||||
@Override
|
@Override
|
||||||
protected void onPostCreate(Bundle savedInstanceState) {
|
protected void onPostCreate(Bundle savedInstanceState) {
|
||||||
super.onPostCreate(savedInstanceState);
|
super.onPostCreate(savedInstanceState);
|
||||||
drawerLayout.setup(getResources().getConfiguration());
|
drawerLayout.setup(getResources().getConfiguration(), drawerContainer);
|
||||||
drawerToggle.syncState();
|
drawerToggle.syncState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -540,7 +540,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||||||
@Override
|
@Override
|
||||||
public void onConfigurationChanged(Configuration newConfig) {
|
public void onConfigurationChanged(Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
drawerLayout.setup(newConfig);
|
drawerLayout.setup(newConfig, drawerContainer);
|
||||||
drawerToggle.onConfigurationChanged(newConfig);
|
drawerToggle.onConfigurationChanged(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class DrawerLayoutEx extends DrawerLayout {
|
|||||||
super(context, attrs, defStyle);
|
super(context, attrs, defStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup(Configuration config) {
|
void setup(Configuration config, View drawerContainer) {
|
||||||
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
@@ -64,6 +64,7 @@ public class DrawerLayoutEx extends DrawerLayout {
|
|||||||
setDrawerLockMode(LOCK_MODE_UNLOCKED);
|
setDrawerLockMode(LOCK_MODE_UNLOCKED);
|
||||||
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
setScrimColor(Helper.resolveColor(getContext(), R.attr.colorDrawerScrim));
|
||||||
childContent.setPaddingRelative(0, 0, 0, 0);
|
childContent.setPaddingRelative(0, 0, 0, 0);
|
||||||
|
closeDrawer(drawerContainer, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user