Split the display layout config between landscape and portrait orientations

This commit is contained in:
Henrik Rydgård
2025-10-30 11:18:20 +01:00
parent 3e2edbfe81
commit 67010ff2af
60 changed files with 480 additions and 317 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ void IAPScreen::CreateViews() {
auto di = GetI18NCategory(I18NCat::DIALOG);
auto mm = GetI18NCategory(I18NCat::MAINMENU);
const bool vertical = UsePortraitLayout();
const bool vertical = GetDeviceOrientation() == DeviceOrientation::Portrait;
root_ = new LinearLayout(vertical ? ORIENT_VERTICAL : ORIENT_HORIZONTAL, new LayoutParams(FILL_PARENT, FILL_PARENT));