mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 18:59:01 +00:00
Limit drawer width to 320dp
This commit is contained in:
parent
098d5a619a
commit
b749fe62bf
1 changed files with 3 additions and 1 deletions
|
@ -229,8 +229,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, dm);
|
||||
else
|
||||
actionBarHeight = Helper.dp2pixels(this, 56);
|
||||
|
||||
int screenWidth = Math.min(dm.widthPixels, dm.heightPixels);
|
||||
drawerWidth = screenWidth - actionBarHeight;
|
||||
int dp320 = Helper.dp2pixels(this, 320);
|
||||
drawerWidth = Math.min(screenWidth - actionBarHeight, dp320);
|
||||
} else
|
||||
drawerWidth = Helper.dp2pixels(this, 300);
|
||||
|
||||
|
|
Loading…
Reference in a new issue