From c23527eb822ed8034c45a6adad08cf7782bece50 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Fri, 17 Jan 2025 17:36:45 +0100 Subject: [PATCH] Revert to targeting Android 14 This reverts commit ff08dbe5d53dea82ff8fd1a36796e9a56cca42d2. I tried keeping the target at Android 15 and opting out of edge-to-edge enforcement, but this is not a true compatibility mode and broke the multi-selection UI in the main activity. --- app/build.gradle.kts | 2 +- .../res/layout/barcode_selector_activity.xml | 3 +-- .../res/layout/import_export_activity.xml | 14 +++++++------- .../res/layout/loyalty_card_view_layout.xml | 19 ++++++++----------- app/src/main/res/layout/scan_activity.xml | 1 - app/src/main/res/values/themes.xml | 1 - 6 files changed, 17 insertions(+), 23 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2cb8e26e8..0810b0758 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,7 +21,7 @@ android { defaultConfig { applicationId = "me.hackerchick.catima" minSdk = 21 - targetSdk = 35 + targetSdk = 34 versionCode = 145 versionName = "2.34.3" diff --git a/app/src/main/res/layout/barcode_selector_activity.xml b/app/src/main/res/layout/barcode_selector_activity.xml index 44f4e9cd9..0252b9dc3 100644 --- a/app/src/main/res/layout/barcode_selector_activity.xml +++ b/app/src/main/res/layout/barcode_selector_activity.xml @@ -4,8 +4,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:fitsSystemWindows="true"> + android:layout_height="fill_parent"> - + + android:layout_height="wrap_content" + android:fitsSystemWindows="true"> + android:layout_height="wrap_content"> + android:layout_marginEnd="0dp"> + android:orientation="vertical"> + app:contentInsetLeft="0dp" + app:contentInsetStart="0dp" + app:contentInsetRight="0dp" + app:contentInsetEnd="0dp" + app:fabAlignmentMode="center"> diff --git a/app/src/main/res/layout/scan_activity.xml b/app/src/main/res/layout/scan_activity.xml index f305b9b8f..fb9bcfdf2 100644 --- a/app/src/main/res/layout/scan_activity.xml +++ b/app/src/main/res/layout/scan_activity.xml @@ -5,7 +5,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" tools:context=".ScanActivity"> @style/ThemeOverlay.App.MaterialAlertDialog.Monet true -