android: add 'required xposed' text to vendorid config toggle

This commit is contained in:
Kavish Devar
2026-04-23 03:39:21 +05:30
parent f6d7e97796
commit 294d733e71

View File

@@ -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()