This commit is contained in:
M66B
2024-09-25 15:19:23 +02:00
parent c177a6a142
commit 3693693fdc
3 changed files with 14 additions and 3 deletions

View File

@@ -252,8 +252,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
" portrait rows=" + portrait2 + " cols=" + portrait2c + " min=" + portrait_min_size +
" landscape cols=" + landscape + " min=" + landscape_min_size);
boolean duo = Helper.isSurfaceDuo();
boolean fold6 = Helper.isFold6();
boolean close_pane = prefs.getBoolean("close_pane", !duo && !fold6);
boolean canFold = Helper.canFold(this);
boolean close_pane = prefs.getBoolean("close_pane", !duo && !canFold);
boolean nav_categories = prefs.getBoolean("nav_categories", false);
// 1=small, 2=normal, 3=large, 4=xlarge
@@ -279,7 +279,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (content_pane != null) {
// Special: Surface Duo
if (duo || fold6) {
if (duo || canFold) {
View content_frame = findViewById(R.id.content_frame);
ViewGroup.LayoutParams lparam = content_frame.getLayoutParams();
if (lparam instanceof LinearLayout.LayoutParams) {