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

Commit df8461c4 authored by James Willcox's avatar James Willcox
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
Change-Id: Ia12cef3031c41206ab74616154c75fd415b31a0e
parent 4bc363b9
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(