From c132d28f96aac0fc89e037a809a4d564740c2a27 Mon Sep 17 00:00:00 2001 From: Flavia Handrea Date: Fri, 12 Jul 2024 16:57:51 +0300 Subject: [PATCH] Fixed bug: "App Displays Mobile Screens on Some Android Tablets". --- .../main/java/org/permanent/permanent/ui/PreferencesHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/permanent/permanent/ui/PreferencesHelper.kt b/app/src/main/java/org/permanent/permanent/ui/PreferencesHelper.kt index 62309bc5..0a1bff83 100644 --- a/app/src/main/java/org/permanent/permanent/ui/PreferencesHelper.kt +++ b/app/src/main/java/org/permanent/permanent/ui/PreferencesHelper.kt @@ -460,6 +460,6 @@ class PreferencesHelper(private val sharedPreferences: SharedPreferences) { fun isTablet(): Boolean { val windowWidthSizeString = sharedPreferences.getString(WINDOW_WIDTH_SIZE_CLASS, "") - return windowWidthSizeString.equals(WindowWidthSizeClass.EXPANDED.toString()) + return !windowWidthSizeString.equals(WindowWidthSizeClass.COMPACT.toString()) } } \ No newline at end of file