From 0b0982441061f28c59fb399e6ec0d00d8e6e9063 Mon Sep 17 00:00:00 2001 From: Pato Jofre Date: Mon, 3 Aug 2026 16:40:09 +0100 Subject: [PATCH 1/9] Add landscape-safe welcomebatch layout, drop orphan port-only layouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R.layout.welcomebatch only existed under layout-port, layout-small-port, layout-large-port and layout-xlarge-port. WelcomeBatchActivity requests a portrait lock before calling setContentView, so the missing configuration was unreachable until now — but Android 16 (API 36) ignores that lock on displays with smallest width >= 600dp, which would make the lookup fail with Resources$NotFoundException on tablets in landscape. Add a default layout/welcomebatch.xml that centers the logo with gravity="center" plus maxHeight/adjustViewBounds instead of the fixed marginTop="300dp" the portrait variants use, so it holds up at any window height. The existing -port variants are untouched, so portrait is unchanged. Also delete device_ready, warning and warning_android7: port-only layouts with no base variant whose referencing activities were removed long ago (DeviceReadyActivity in 89ffcaaf, R.layout.warning in 9b44e8f6). They were the remaining MissingDefaultResource fatals. Lint fatals: 11 -> 0. Co-Authored-By: Claude Opus 5 (1M context) --- .../res/layout-large-port/device_ready.xml | 255 ------------------ .../main/res/layout-large-port/warning.xml | 85 ------ .../layout-large-port/warning_android7.xml | 85 ------ app/src/main/res/layout-port/warning.xml | 98 ------- .../main/res/layout-port/warning_android7.xml | 85 ------ .../main/res/layout-small-port/warning.xml | 85 ------ .../layout-small-port/warning_android7.xml | 85 ------ app/src/main/res/layout/welcomebatch.xml | 30 +++ 8 files changed, 30 insertions(+), 778 deletions(-) delete mode 100644 app/src/main/res/layout-large-port/device_ready.xml delete mode 100644 app/src/main/res/layout-large-port/warning.xml delete mode 100644 app/src/main/res/layout-large-port/warning_android7.xml delete mode 100644 app/src/main/res/layout-port/warning.xml delete mode 100644 app/src/main/res/layout-port/warning_android7.xml delete mode 100644 app/src/main/res/layout-small-port/warning.xml delete mode 100644 app/src/main/res/layout-small-port/warning_android7.xml create mode 100644 app/src/main/res/layout/welcomebatch.xml diff --git a/app/src/main/res/layout-large-port/device_ready.xml b/app/src/main/res/layout-large-port/device_ready.xml deleted file mode 100644 index bf5cbcc4e..000000000 --- a/app/src/main/res/layout-large-port/device_ready.xml +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout-large-port/warning.xml b/app/src/main/res/layout-large-port/warning.xml deleted file mode 100644 index f32fdace7..000000000 --- a/app/src/main/res/layout-large-port/warning.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - -