mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Move large screen check to wrapper.
This commit is contained in:
committed by
Jeffrey Starke
parent
cbfdc4b57a
commit
3352ebaa06
@@ -95,7 +95,7 @@ enum class WindowSizeClass(
|
||||
fun isPortrait(): Boolean = !isLandscape()
|
||||
|
||||
fun isSplitPane(): Boolean {
|
||||
return if (RemoteConfig.largeScreenUi && SignalStore.internal.forceSplitPaneOnCompactLandscape) {
|
||||
return if (isLargeScreenSupportEnabled() && SignalStore.internal.forceSplitPaneOnCompactLandscape) {
|
||||
this != COMPACT_PORTRAIT
|
||||
} else {
|
||||
this.navigation != Navigation.BAR
|
||||
@@ -120,8 +120,12 @@ enum class WindowSizeClass(
|
||||
return getSizeClassForOrientationAndSystemSizeClass(orientation, windowSizeClass)
|
||||
}
|
||||
|
||||
fun isLargeScreenSupportEnabled(): Boolean {
|
||||
return RemoteConfig.largeScreenUi && SignalStore.internal.largeScreenUi
|
||||
}
|
||||
|
||||
fun isForcedCompact(): Boolean {
|
||||
return !RemoteConfig.largeScreenUi
|
||||
return !isLargeScreenSupportEnabled()
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
Reference in New Issue
Block a user