Update the strings for the autofill enable dialog
Test: manual bug:37244333 Change-Id: I6dfac8826d5a817567116ef2f57d646d92b54b4e
This commit is contained in:
@@ -24,6 +24,7 @@ import android.content.pm.ServiceInfo;
|
||||
import android.provider.Settings;
|
||||
import android.service.autofill.AutofillService;
|
||||
import android.service.autofill.AutofillServiceInfo;
|
||||
import android.text.Html;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
@@ -65,12 +66,14 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getConfirmationMessage(CandidateInfo appInfo) {
|
||||
protected CharSequence getConfirmationMessage(CandidateInfo appInfo) {
|
||||
if (appInfo == null) {
|
||||
return null;
|
||||
}
|
||||
final CharSequence appName = appInfo.loadLabel();
|
||||
return getContext().getString(R.string.autofill_confirmation_message, appName);
|
||||
final String message = getContext().getString(
|
||||
R.string.autofill_confirmation_message, appName);
|
||||
return Html.fromHtml(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user