From f46a9c5f3a1d27cae003a43db60a8c303c4fbf90 Mon Sep 17 00:00:00 2001 From: Zakhar Timoshenko Date: Wed, 2 Mar 2022 14:28:28 +0300 Subject: [PATCH] Fix crash on tablets when clicking on cover --- app/src/main/res/layout-w600dp-land/fragment_details.xml | 1 + app/src/main/res/layout-w600dp-port/fragment_details.xml | 1 + app/src/main/res/layout/fragment_details.xml | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout-w600dp-land/fragment_details.xml b/app/src/main/res/layout-w600dp-land/fragment_details.xml index 3d985c834..01d70b842 100644 --- a/app/src/main/res/layout-w600dp-land/fragment_details.xml +++ b/app/src/main/res/layout-w600dp-land/fragment_details.xml @@ -37,6 +37,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:scaleType="centerCrop" + android:transitionName="cover" tools:background="@tools:sample/backgrounds/scenic" tools:ignore="ContentDescription" /> diff --git a/app/src/main/res/layout-w600dp-port/fragment_details.xml b/app/src/main/res/layout-w600dp-port/fragment_details.xml index 96e5232d9..8fdc987eb 100644 --- a/app/src/main/res/layout-w600dp-port/fragment_details.xml +++ b/app/src/main/res/layout-w600dp-port/fragment_details.xml @@ -37,6 +37,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:scaleType="centerCrop" + android:transitionName="cover" tools:background="@tools:sample/backgrounds/scenic" tools:ignore="ContentDescription" /> diff --git a/app/src/main/res/layout/fragment_details.xml b/app/src/main/res/layout/fragment_details.xml index 5a70cdbb7..8d2c03703 100644 --- a/app/src/main/res/layout/fragment_details.xml +++ b/app/src/main/res/layout/fragment_details.xml @@ -36,7 +36,6 @@ android:id="@+id/imageView_cover" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" android:scaleType="centerCrop" android:transitionName="cover" tools:background="@tools:sample/backgrounds/scenic"