Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0889b07c authored by James Willcox's avatar James Willcox Committed by Android Build Coastguard Worker
Browse files

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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:df8461c4e00de2b44f1eb56136d02dbf2b152d94)
Merged-In: Ia12cef3031c41206ab74616154c75fd415b31a0e
Change-Id: Ia12cef3031c41206ab74616154c75fd415b31a0e
parent 710428e8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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(