summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pat Manning <patmanning@google.com> 2024-11-12 10:59:04 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-11-12 10:59:04 +0000
commit1af6bb4f4b483c73205912d0cf3ed33299431410 (patch)
tree316ed687664afc48d9ee209eb525e54fd2328449
parent5a501824aad976079e52e146387e51f7e7a8c34e (diff)
parentd74a779035bab9958e07163ba478aebc13820867 (diff)
Merge "Set title on shortcut helper dialog so talkback doesn't announce SystemUI." into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/ShortcutHelperDialogStarter.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/ShortcutHelperDialogStarter.kt b/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/ShortcutHelperDialogStarter.kt
index 807c70bbc225..10a201e976c1 100644
--- a/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/ShortcutHelperDialogStarter.kt
+++ b/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/ShortcutHelperDialogStarter.kt
@@ -27,6 +27,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.android.systemui.CoreStartable
import com.android.systemui.dagger.SysUISingleton
@@ -36,6 +37,7 @@ import com.android.systemui.keyboard.shortcut.ui.composable.ShortcutHelperBottom
import com.android.systemui.keyboard.shortcut.ui.composable.getWidth
import com.android.systemui.keyboard.shortcut.ui.viewmodel.ShortcutHelperViewModel
import com.android.systemui.plugins.ActivityStarter
+import com.android.systemui.res.R
import com.android.systemui.statusbar.phone.SystemUIDialogFactory
import com.android.systemui.statusbar.phone.createBottomSheet
import javax.inject.Inject
@@ -86,6 +88,7 @@ constructor(
},
)
dialog.setOnDismissListener { shortcutHelperViewModel.onViewClosed() }
+ dialog.setTitle(stringResource(R.string.shortcut_helper_title))
},
maxWidth = ShortcutHelperBottomSheet.LargeScreenWidthLandscape,
)