Put credman registry-based sessions into PENDING state to start

This makes them act more like remote providers and allows existing
checks regarding when to show the UI work as expected.

Bug: 288913298
Test: manually
Change-Id: Ia12cef3031c41206ab74616154c75fd415b31a0e
This commit is contained in:
James Willcox
2023-06-26 19:22:32 +00:00
parent 4bc363b907
commit df8461c4e0

View File

@@ -126,6 +126,7 @@ public class ProviderRegistryGetSession extends ProviderSession<CredentialOption
mElementKeys = new HashSet<>(requestOption
.getCredentialRetrievalData()
.getStringArrayList(CredentialOption.SUPPORTED_ELEMENT_KEYS));
mStatus = Status.PENDING;
}
protected ProviderRegistryGetSession(@NonNull Context context,
@@ -143,6 +144,7 @@ public class ProviderRegistryGetSession extends ProviderSession<CredentialOption
mElementKeys = new HashSet<>(requestOption
.getCredentialRetrievalData()
.getStringArrayList(CredentialOption.SUPPORTED_ELEMENT_KEYS));
mStatus = Status.PENDING;
}
private List<Entry> prepareUiCredentialEntries(