Update strings for new settings design
This updates the strings for the new settings design as per the new spec. Screenshots: https://hsv.googleplex.com/5257279109595136 https://hsv.googleplex.com/5049022822744064 https://hsv.googleplex.com/6177842804031488 Change-Id: I6ff705d2bfab9de4ca2e8d49763b5405e3d2d2c3 Test: Manual test Bug: 300979487
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.pm.ServiceInfo;
|
||||
import android.credentials.CredentialManager;
|
||||
import android.credentials.CredentialProviderInfo;
|
||||
import android.credentials.SetEnabledProvidersException;
|
||||
import android.credentials.flags.Flags;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
@@ -305,14 +306,21 @@ public class DefaultCombinedPicker extends DefaultAppPickerFragment {
|
||||
protected CharSequence getConfirmationMessage(CandidateInfo appInfo) {
|
||||
// If we are selecting none then show a warning label.
|
||||
if (appInfo == null) {
|
||||
final String message = getContext().getString(R.string.credman_confirmation_message);
|
||||
final String message =
|
||||
getContext()
|
||||
.getString(
|
||||
Flags.newSettingsUi()
|
||||
? R.string.credman_confirmation_message_new_ui
|
||||
: R.string.credman_confirmation_message);
|
||||
return Html.fromHtml(message);
|
||||
}
|
||||
final CharSequence appName = appInfo.loadLabel();
|
||||
final String message =
|
||||
getContext()
|
||||
.getString(
|
||||
R.string.credman_autofill_confirmation_message,
|
||||
Flags.newSettingsUi()
|
||||
? R.string.credman_autofill_confirmation_message_new_ui
|
||||
: R.string.credman_autofill_confirmation_message,
|
||||
Html.escapeHtml(appName));
|
||||
return Html.fromHtml(message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user