mirror of https://github.com/M66B/FairEmail.git
Two way foldable
This commit is contained in:
parent
2df6cf857d
commit
a50269b061
|
@ -184,7 +184,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
content_separator = findViewById(R.id.content_separator);
|
||||
content_pane = findViewById(R.id.content_pane);
|
||||
|
||||
if (!portrait && !landscape3 && Helper.isSplitScreen()) {
|
||||
if ((portrait ? portrait2 : !landscape3) && Helper.isFoldable()) {
|
||||
View content_frame = findViewById(R.id.content_frame);
|
||||
ViewGroup.LayoutParams lparam = content_frame.getLayoutParams();
|
||||
if (lparam instanceof LinearLayout.LayoutParams) {
|
||||
|
|
|
@ -677,7 +677,7 @@ public class Helper {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static boolean isSplitScreen() {
|
||||
static boolean isFoldable() {
|
||||
return ("Microsoft".equalsIgnoreCase(Build.MANUFACTURER) && "Surface Duo".equals(Build.MODEL));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue