From ac9735457dcb4ec2affb10cc500047c8af1385e2 Mon Sep 17 00:00:00 2001 From: Chaohui Wang Date: Tue, 28 Mar 2023 22:22:05 +0900 Subject: [PATCH] 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 --- src/com/android/settings/spa/app/appinfo/AppDisableButton.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/settings/spa/app/appinfo/AppDisableButton.kt b/src/com/android/settings/spa/app/appinfo/AppDisableButton.kt index 450f984b8b9..a41a6971920 100644 --- a/src/com/android/settings/spa/app/appinfo/AppDisableButton.kt +++ b/src/com/android/settings/spa/app/appinfo/AppDisableButton.kt @@ -112,11 +112,10 @@ class AppDisableButton( @Composable private fun confirmDialogPresenter() = rememberAlertDialogPresenter( confirmButton = AlertDialogButton( - text = stringResource(R.string.reset_app_preferences_button), + text = stringResource(R.string.app_disable_dlg_positive), onClick = packageInfoPresenter::disable, ), dismissButton = AlertDialogButton(stringResource(R.string.cancel)), - title = stringResource(R.string.app_disable_dlg_positive), text = { Text(stringResource(R.string.app_disable_dlg_text)) }, ) }