Skip to content

Commit c7c675e

Browse files
committed
Docs: Clarify isBackButtonRequired intention for non-touch/hardware back environments
1 parent 60ab1f1 commit c7c675e

File tree

1 file changed

+3
-0
lines changed
  • AdaptiveJetStream/jetstream/src/main/java/com/google/jetstream/presentation/components/feature

1 file changed

+3
-0
lines changed

AdaptiveJetStream/jetstream/src/main/java/com/google/jetstream/presentation/components/feature/BackButtonRequired.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ package com.google.jetstream.presentation.components.feature
1818

1919
import androidx.compose.runtime.Composable
2020

21+
// This function determines if the back button is required
22+
// so that users can comfortably navigate back to the previous screen when they are using
23+
// the app in the environment without touch screen or hardware back button as d-pad has.
2124
@Composable
2225
fun isBackButtonRequired(): Boolean {
2326
return isAutomotiveEnabled() ||

0 commit comments

Comments
 (0)