mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Minimum content width when pinned nav menu
This commit is contained in:
@@ -801,10 +801,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
return Helper.dp2pixels(this, 48);
|
||||
|
||||
DisplayMetrics dm = getResources().getDisplayMetrics();
|
||||
if (layoutId == R.layout.activity_view_landscape_split && nav_pinned)
|
||||
return Helper.dp2pixels(this, 300);
|
||||
else if (layoutId != R.layout.activity_view_landscape_split && nav_pinned)
|
||||
return Math.min(Helper.dp2pixels(this, 300), dm.widthPixels / 2);
|
||||
if (nav_pinned) {
|
||||
int maxWidth = dm.widthPixels - Helper.dp2pixels(this, 300);
|
||||
return Math.min(Helper.dp2pixels(this, 300), maxWidth);
|
||||
}
|
||||
else {
|
||||
int actionBarHeight;
|
||||
TypedValue tv = new TypedValue();
|
||||
|
||||
Reference in New Issue
Block a user