Skip to content

Commit

Permalink
Allow changing division on foldable devices
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 2, 2024
1 parent 835c472 commit 8f79ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/eu/faircode/email/ActivityView.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ else if (config.orientation == ORIENTATION_PORTRAIT || !landscape)

if (content_pane != null) {
// Special: Surface Duo
if (duo || canFold) {
if (duo) {
View content_frame = findViewById(R.id.content_frame);
ViewGroup.LayoutParams lparam = content_frame.getLayoutParams();
if (lparam instanceof LinearLayout.LayoutParams) {
Expand All @@ -294,7 +294,7 @@ else if (config.orientation == ORIENTATION_PORTRAIT || !landscape)
content_separator.getLayoutParams().width = Helper.dp2pixels(this, seam);
}
} else {
int column_width = prefs.getInt("column_width", 67);
int column_width = prefs.getInt("column_width", canFold ? 50 : 67);
ViewGroup.LayoutParams lparam = content_pane.getLayoutParams();
if (lparam instanceof LinearLayout.LayoutParams) {
((LinearLayout.LayoutParams) lparam).weight =
Expand Down

0 comments on commit 8f79ab4

Please sign in to comment.