summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationBanner.kt4
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreen.kt1
2 files changed, 5 insertions, 0 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationBanner.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationBanner.kt
index 1605b83cdb..2279e47407 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationBanner.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationBanner.kt
@@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.size
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
+import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import java.time.Duration
@@ -68,6 +69,7 @@ fun NotificationBanner(
modifier: Modifier = Modifier,
notification: InAppNotification?,
isPlayBuild: Boolean,
+ contentFocusRequester: FocusRequester = FocusRequester(),
openAppListing: () -> Unit,
onClickShowAccount: () -> Unit,
onClickShowChangelog: () -> Unit,
@@ -81,6 +83,7 @@ fun NotificationBanner(
notification = notification,
isPlayBuild = isPlayBuild,
openAppListing = openAppListing,
+ contentFocusRequester = contentFocusRequester,
onClickShowAccount = onClickShowAccount,
onClickShowChangelog = onClickShowChangelog,
onClickDismissChangelog = onClickDismissChangelog,
@@ -94,6 +97,7 @@ fun NotificationBanner(
notification = notification,
isPlayBuild = isPlayBuild,
openAppListing = openAppListing,
+ contentFocusRequester = contentFocusRequester,
onClickShowAccount = onClickShowAccount,
onClickShowChangelog = onClickShowChangelog,
onClickDismissChangelog = onClickDismissChangelog,
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreen.kt
index 82d6736c99..88a4c30922 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreen.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreen.kt
@@ -450,6 +450,7 @@ private fun Content(
modifier = Modifier.align(Alignment.TopCenter),
notification = state.inAppNotification,
isPlayBuild = state.isPlayBuild,
+ contentFocusRequester = focusRequester,
openAppListing = onOpenAppListing,
onClickShowAccount = onManageAccountClick,
onClickShowChangelog = onChangelogClick,