Align settings with new mocks

Test: ondevice
Bug: 278919696
Change-Id: I274126bce3616596c4a81dd3385f0844d8bdbf71
This commit is contained in:
Becca Hughes
2023-04-26 22:52:10 +00:00
parent 7dd5f5e156
commit b21df6c5fc
7 changed files with 287 additions and 211 deletions

View File

@@ -237,7 +237,10 @@ public final class CombinedProviderInfo {
List<CredentialProviderInfo> cpi = credmanServices.get(packageName);
// If there are multiple autofill services then pick the first one.
AutofillServiceInfo selectedAsi = asi.isEmpty() ? null : asi.get(0);
AutofillServiceInfo selectedAsi = null;
if (asi != null && !asi.isEmpty()) {
selectedAsi = asi.get(0);
}
// Check if we are the default autofill provider.
boolean isDefaultAutofillProvider = false;