Update the strings for the autofill enable dialog

Test: manual

bug:37244333

Change-Id: I6dfac8826d5a817567116ef2f57d646d92b54b4e
This commit is contained in:
Svet Ganov
2017-04-12 12:14:28 -07:00
parent 15f963bed9
commit 4fafa4e403
3 changed files with 19 additions and 9 deletions

View File

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