Skip to content

Commit

Permalink
Fixed bug: "App Displays Mobile Screens on Some Android Tablets".
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviahandrea-vsp committed Jul 12, 2024
1 parent 0e2867c commit c132d28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

0 comments on commit c132d28

Please sign in to comment.