From 29042b18a783a9638183944018c94df2788857ea Mon Sep 17 00:00:00 2001 From: Yuri Lin Date: Wed, 21 Aug 2024 14:41:42 -0400 Subject: [PATCH] Add interstitial layout for larger screen devices For large enough screens, always use the portrait (all vertical in one column) layout for the intestitial, since the landscape split in two halves only makes sense for smaller screens. Renames the layout to mode_interstitial_layout_base and uses an alias so that we can reuse the same layout but with additional padding. Fixes: 361344824 Test: manual Flag: android.app.modes_ui Change-Id: I4e02e9a246ee799e3a79508f11290397a236574c --- .../mode_interstitial_layout.xml | 28 +++++++++++++++++++ ....xml => mode_interstitial_layout_base.xml} | 0 res/values/aliases.xml | 1 + 3 files changed, 29 insertions(+) create mode 100644 res/layout-sw600dp/mode_interstitial_layout.xml rename res/layout/{mode_interstitial_layout.xml => mode_interstitial_layout_base.xml} (100%) diff --git a/res/layout-sw600dp/mode_interstitial_layout.xml b/res/layout-sw600dp/mode_interstitial_layout.xml new file mode 100644 index 00000000000..595f353bb71 --- /dev/null +++ b/res/layout-sw600dp/mode_interstitial_layout.xml @@ -0,0 +1,28 @@ + + + + + + \ No newline at end of file diff --git a/res/layout/mode_interstitial_layout.xml b/res/layout/mode_interstitial_layout_base.xml similarity index 100% rename from res/layout/mode_interstitial_layout.xml rename to res/layout/mode_interstitial_layout_base.xml diff --git a/res/values/aliases.xml b/res/values/aliases.xml index e17198b71a2..3356977c699 100644 --- a/res/values/aliases.xml +++ b/res/values/aliases.xml @@ -23,5 +23,6 @@ @layout/fingerprint_enroll_finish_base @layout/sfps_enroll_finish_base @layout/choose_lock_pattern_common + @layout/mode_interstitial_layout_base