From ff08dbe5d53dea82ff8fd1a36796e9a56cca42d2 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Sat, 4 Jan 2025 15:20:07 +0100 Subject: [PATCH] Android 15 (SDK 35) support --- 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 + 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8930dc0be..dd2635593 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,7 +21,7 @@ android { defaultConfig { applicationId = "me.hackerchick.catima" minSdk = 21 - targetSdk = 34 + targetSdk = 35 versionCode = 144 versionName = "2.34.2" diff --git a/app/src/main/res/layout/barcode_selector_activity.xml b/app/src/main/res/layout/barcode_selector_activity.xml index 0252b9dc3..44f4e9cd9 100644 --- a/app/src/main/res/layout/barcode_selector_activity.xml +++ b/app/src/main/res/layout/barcode_selector_activity.xml @@ -4,7 +4,8 @@ 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:layout_height="fill_parent" + android:fitsSystemWindows="true"> - + + android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:fitsSystemWindows="true"> + android:layout_marginEnd="0dp" + android:fitsSystemWindows="true"> + android:orientation="vertical" + android:fitsSystemWindows="false"> + app:fabAlignmentMode="center" + app:fabCradleVerticalOffset="2dp" + android:fitsSystemWindows="true"> diff --git a/app/src/main/res/layout/scan_activity.xml b/app/src/main/res/layout/scan_activity.xml index fb9bcfdf2..f305b9b8f 100644 --- a/app/src/main/res/layout/scan_activity.xml +++ b/app/src/main/res/layout/scan_activity.xml @@ -5,6 +5,7 @@ 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">