Correct the disable button text

This is a type before, use the correct string resource.

Also remove the title to align with before SPA migration.

Fix: 275344620
Test: Manually with Settings
Change-Id: Id80cd1e3e7092cb645cb6ccb563e8fd11c5a40e5
This commit is contained in:
Chaohui Wang
2023-03-28 22:22:05 +09:00
parent 600261a484
commit ac9735457d

View File

@@ -112,11 +112,10 @@ class AppDisableButton(
@Composable @Composable
private fun confirmDialogPresenter() = rememberAlertDialogPresenter( private fun confirmDialogPresenter() = rememberAlertDialogPresenter(
confirmButton = AlertDialogButton( confirmButton = AlertDialogButton(
text = stringResource(R.string.reset_app_preferences_button), text = stringResource(R.string.app_disable_dlg_positive),
onClick = packageInfoPresenter::disable, onClick = packageInfoPresenter::disable,
), ),
dismissButton = AlertDialogButton(stringResource(R.string.cancel)), dismissButton = AlertDialogButton(stringResource(R.string.cancel)),
title = stringResource(R.string.app_disable_dlg_positive),
text = { Text(stringResource(R.string.app_disable_dlg_text)) }, text = { Text(stringResource(R.string.app_disable_dlg_text)) },
) )
} }