Skip to content

Commit 6fa3ff5

Browse files
authored
Add Connect to PC controls hint (#2574)
- Add a short hint explaining how to open PC controls after connecting - Keep the Connect to PC flow behavior unchanged - Validate the UI change with compileDebugKotlin 🤖 Auto-generated
1 parent 4c8da57 commit 6fa3ff5

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

app/src/main/java/com/enaboapps/switchify/screens/pc/PcConnectionScreen.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ fun PcConnectionScreen(navController: NavController) {
101101
ScrollableView {
102102
Column(verticalArrangement = Arrangement.spacedBy(Dimens.spaceM)) {
103103
PcDownloadSection(openDownloadPage)
104+
Text(
105+
text = stringResource(R.string.pc_connection_control_hint),
106+
style = MaterialTheme.typography.bodyMedium,
107+
color = MaterialTheme.colorScheme.onSurfaceVariant,
108+
modifier = Modifier.padding(horizontal = Dimens.spaceM),
109+
)
104110
if (uiState.permissionRequired) {
105111
Section(titleResId = R.string.pc_connection_permission_section) {
106112
Column(modifier = Modifier.padding(vertical = Dimens.spaceS)) {

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
<string name="pc_connection_setup_section">Set up your computer</string>
298298
<string name="pc_connection_download_pc_title">Download Switchify PC</string>
299299
<string name="pc_connection_download_pc_summary">Install Switchify PC on your computer before connecting over Bluetooth.</string>
300+
<string name="pc_connection_control_hint">After connecting, open the Switchify menu and choose Control PC.</string>
300301
<string name="pc_connection_permission_section">Bluetooth permission</string>
301302
<string name="pc_connection_permission_message">Switchify needs Bluetooth permission to find and connect to Switchify PC.</string>
302303
<string name="pc_connection_permission_action">Allow Bluetooth</string>

0 commit comments

Comments
 (0)