From 42a3dad49d3188d9154bc97addd9b7ea428484f0 Mon Sep 17 00:00:00 2001 From: Atef Ben Ali Date: Wed, 17 Jul 2024 17:25:18 +0100 Subject: [PATCH 1/2] refactor: review `logic` --- .../com/quran/labs/androidquran/view/QuranImagePageLayout.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/quran/labs/androidquran/view/QuranImagePageLayout.kt b/app/src/main/java/com/quran/labs/androidquran/view/QuranImagePageLayout.kt index 86dcc5b6f4..6604f174c4 100644 --- a/app/src/main/java/com/quran/labs/androidquran/view/QuranImagePageLayout.kt +++ b/app/src/main/java/com/quran/labs/androidquran/view/QuranImagePageLayout.kt @@ -24,11 +24,10 @@ open class QuranImagePageLayout(context: Context) : QuranPageLayout(context) { } override fun generateContentView(context: Context, isLandscape: Boolean): View { - imageView = HighlightingImageView(context).apply { + return HighlightingImageView(context).apply { adjustViewBounds = true setIsScrollable(isLandscape && shouldWrapWithScrollView(), isLandscape) } - return imageView } override fun updateView(quranSettings: QuranSettings) { From 07420223462888f577ca07c9edd0155ada3ed386 Mon Sep 17 00:00:00 2001 From: Atef Ben Ali Date: Wed, 17 Jul 2024 17:39:02 +0100 Subject: [PATCH 2/2] fix: fix typo --- app/src/warsh/res/values/app_strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/warsh/res/values/app_strings.xml b/app/src/warsh/res/values/app_strings.xml index 43751211d1..3d76f4cd55 100644 --- a/app/src/warsh/res/values/app_strings.xml +++ b/app/src/warsh/res/values/app_strings.xml @@ -1,7 +1,7 @@ Quran - Warsh - Warsh images used with permission of tafisr.app. + Warsh images used with permission of tafsir.app. The data used in the translations and Arabic comes from <a href="https://quranenc.com">quranenc.com</a> and <a href="https://quran.ksu.edu.sa">quran.ksu.edu.sa</a>.