Small fix an issue with extracting the provider list in the UI app for the get flow

Test: Built locally

Change-Id: I76aa910104eb04a5dac1f40ed45ba64e0757f19d
This commit is contained in:
Reema Bajwa
2022-11-18 22:00:46 +00:00
parent fe5097cfbd
commit 211f017e10
2 changed files with 5 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ public class Entry implements Parcelable {
protected Entry(@NonNull Parcel in) {
String key = in.readString8();
String subkey = in.readString8();
Slice slice = Slice.CREATOR.createFromParcel(in);
Slice slice = in.readTypedObject(Slice.CREATOR);
mKey = key;
AnnotationValidations.validate(NonNull.class, null, mKey);
@@ -167,9 +167,9 @@ public class Entry implements Parcelable {
public void writeToParcel(@NonNull Parcel dest, int flags) {
dest.writeString8(mKey);
dest.writeString8(mSubkey);
mSlice.writeToParcel(dest, flags);
mPendingIntent.writeToParcel(dest, flags);
mFrameworkExtrasIntent.writeToParcel(dest, flags);
dest.writeTypedObject(mSlice, flags);
dest.writeTypedObject(mPendingIntent, flags);
dest.writeTypedObject(mFrameworkExtrasIntent, flags);
}
@Override

View File

@@ -75,7 +75,7 @@ class CredentialManagerRepo(
RequestInfo.TYPE_GET ->
intent.extras?.getParcelableArrayList(
ProviderData.EXTRA_ENABLED_PROVIDER_DATA_LIST,
DisabledProviderData::class.java
GetCredentialProviderData::class.java
) ?: testGetCredentialProviderList()
else -> {
// TODO: fail gracefully