mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-01 07:39:11 +00:00
android: show head gestures status in the navigation button
This commit is contained in:
@@ -273,10 +273,10 @@ fun AirPodsSettingsScreen(dev: BluetoothDevice?, service: AirPodsService,
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
NavigationButton(to = "head_tracking", stringResource(R.string.head_gestures), navController)
|
||||
NavigationButton(to = "head_tracking", name = stringResource(R.string.head_gestures), navController = navController, currentState = if (sharedPreferences.getBoolean("head_gestures", false)) stringResource(R.string.on) else stringResource(R.string.off))
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
NavigationButton(to = "accessibility", "Accessibility", navController = navController)
|
||||
NavigationButton(to = "accessibility", name = stringResource(R.string.accessibility), navController = navController)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
StyledToggle(
|
||||
|
||||
@@ -173,4 +173,5 @@
|
||||
<string name="error_converting_hex">Error converting hex:</string>
|
||||
<string name="found_offset_restart_bluetooth">Found offset please restart the Bluetooth process</string>
|
||||
<string name="digital_assistant">Digital Assistant</string>
|
||||
<string name="on">On</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user