mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-05-18 14:56:44 +00:00
android: add 'required xposed' text to vendorid config toggle
This commit is contained in:
@@ -367,10 +367,8 @@ fun AppSettingsScreen(
|
|||||||
Spacer(modifier = Modifier.height(16.dp))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
val restartBluetoothText = stringResource(R.string.found_offset_restart_bluetooth)
|
val restartBluetoothText = stringResource(R.string.found_offset_restart_bluetooth)
|
||||||
StyledToggle(
|
StyledToggle(
|
||||||
label = stringResource(R.string.act_as_an_apple_device),
|
label = stringResource(R.string.act_as_an_apple_device) + " (${stringResource(R.string.requires_xposed)})",
|
||||||
description = stringResource(R.string.act_as_an_apple_device_description) + "\n" + stringResource(
|
description = stringResource(R.string.act_as_an_apple_device_description),
|
||||||
R.string.requires_xposed
|
|
||||||
).replaceFirstChar { if (it.isLowerCase()) it.titlecase(getDefault()) else it.toString() },
|
|
||||||
checked = state.vendorIdHook,
|
checked = state.vendorIdHook,
|
||||||
onCheckedChange = { enabled ->
|
onCheckedChange = { enabled ->
|
||||||
Toast.makeText(context, restartBluetoothText, Toast.LENGTH_SHORT).show()
|
Toast.makeText(context, restartBluetoothText, Toast.LENGTH_SHORT).show()
|
||||||
|
|||||||
Reference in New Issue
Block a user