Two way foldable

pull/187/head
M66B 4 years ago
parent 2df6cf857d
commit a50269b061

@ -184,7 +184,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
content_separator = findViewById(R.id.content_separator); content_separator = findViewById(R.id.content_separator);
content_pane = findViewById(R.id.content_pane); 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); View content_frame = findViewById(R.id.content_frame);
ViewGroup.LayoutParams lparam = content_frame.getLayoutParams(); ViewGroup.LayoutParams lparam = content_frame.getLayoutParams();
if (lparam instanceof LinearLayout.LayoutParams) { if (lparam instanceof LinearLayout.LayoutParams) {

@ -677,7 +677,7 @@ public class Helper {
return 0; return 0;
} }
static boolean isSplitScreen() { static boolean isFoldable() {
return ("Microsoft".equalsIgnoreCase(Build.MANUFACTURER) && "Surface Duo".equals(Build.MODEL)); return ("Microsoft".equalsIgnoreCase(Build.MANUFACTURER) && "Surface Duo".equals(Build.MODEL));
} }

Loading…
Cancel
Save