From b94832f67468b7731de83599d7ed80ffb2562fd8 Mon Sep 17 00:00:00 2001 From: Omer Ozer Date: Mon, 6 Mar 2023 21:17:27 +0000 Subject: [PATCH] Unhide CredentialEntry constructor. CredentialEntry has a different constructor to be used by CredentialProviders when using Credential Registry APIs. Unhiding that so it can be used. Bug: 271486804 Test: local Change-Id: I2878a30403230aec7a163750d16a374088d96ee5 --- core/api/current.txt | 1 + core/java/android/service/credentials/CredentialEntry.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 53dcd75cf59a1..eb78e04864ce7 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -40641,6 +40641,7 @@ package android.service.credentials { public class CredentialEntry implements android.os.Parcelable { ctor public CredentialEntry(@NonNull android.service.credentials.BeginGetCredentialOption, @NonNull android.app.slice.Slice); + ctor public CredentialEntry(@NonNull String, @NonNull android.app.slice.Slice); method public int describeContents(); method @NonNull public android.service.credentials.BeginGetCredentialOption getBeginGetCredentialOption(); method @NonNull public android.app.slice.Slice getSlice(); diff --git a/core/java/android/service/credentials/CredentialEntry.java b/core/java/android/service/credentials/CredentialEntry.java index 7e98bc7eb9752..2b11246642072 100644 --- a/core/java/android/service/credentials/CredentialEntry.java +++ b/core/java/android/service/credentials/CredentialEntry.java @@ -97,9 +97,7 @@ public class CredentialEntry implements Parcelable { * @param slice the slice containing the metadata to be shown on the UI. Must be * constructed through the androidx.credentials jetpack library. * - * @hide */ - // TODO: Unhide this constructor when the registry APIs are stable public CredentialEntry(@NonNull String type, @NonNull Slice slice) { mBeginGetCredentialOption = null; mType = requireNonNull(type, "type must not be null");