File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
mobile/src/main/java/com/windscribe/mobile/ui Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ fun getStatusBarHeight(): Dp {
16
16
val insets = WindowInsets .statusBars.asPaddingValues()
17
17
return insets.calculateTopPadding()
18
18
}
19
+
20
+ @Composable
21
+ fun getHeaderHeight (): Dp {
22
+ return getStatusBarHeight() + 60 .dp
23
+ }
19
24
@Composable
20
25
fun calculateImageDimensions (): ImageDimensions {
21
26
val config = LocalConfiguration .current
@@ -25,7 +30,7 @@ fun calculateImageDimensions(): ImageDimensions {
25
30
val screenWidth = screenWidthDp.dp
26
31
val screenHeight = screenHeightDp.dp
27
32
28
- val minHeight = 242 .dp + getStatusBarHeight()
33
+ val minHeight = 233 .dp + getStatusBarHeight()
29
34
val maxHeight = screenHeight * 0.45f
30
35
31
36
// Determine dynamic height
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ import com.windscribe.mobile.ui.connection.LocationInfoState
79
79
import com.windscribe.mobile.ui.connection.ToastMessage
80
80
import com.windscribe.mobile.ui.helper.MultiDevicePreview
81
81
import com.windscribe.mobile.ui.helper.PreviewWithNav
82
+ import com.windscribe.mobile.ui.helper.getHeaderHeight
82
83
import com.windscribe.mobile.ui.helper.getStatusBarHeight
83
84
import com.windscribe.mobile.ui.helper.hapticClickable
84
85
import com.windscribe.mobile.ui.model.AccountStatusDialogData
@@ -597,7 +598,7 @@ private fun ConnectedBackground(connectionViewmodel: ConnectionViewmodel?) {
597
598
@Composable
598
599
private fun Header (connectionViewmodel : ConnectionViewmodel , homeViewmodel : HomeViewmodel ) {
599
600
val navController = LocalNavController .current
600
- val height = getStatusBarHeight() + 69 .dp
601
+ val height = getHeaderHeight()
601
602
Box (modifier = Modifier .fillMaxWidth()) {
602
603
Row (
603
604
modifier = Modifier
You can’t perform that action at this time.
0 commit comments