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

Commit 45dc1344 authored by Reema Bajwa's avatar Reema Bajwa
Browse files

Minor fixes for autofill-credman integration

Test: Built locally & deployed on device

Change-Id: I9f098206a0e7ddba7f803d8c85d79b70e5d27d30
parent 0b760606
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ public final class CredentialManager {
                    mService.getCandidateCredentials(
                            request,
                            new GetCandidateCredentialsTransport(executor, callback),
                            mContext.getOpPackageName());
                            callingPackage);
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
        }
+3 −0
Original line number Diff line number Diff line
@@ -1401,6 +1401,7 @@ public final class Dataset implements Parcelable {
        parcel.writeParcelable(mAuthentication, flags);
        parcel.writeString(mId);
        parcel.writeInt(mEligibleReason);
        parcel.writeTypedObject(mAuthenticationExtras, flags);
    }

    public static final @NonNull Creator<Dataset> CREATOR = new Creator<Dataset>() {
@@ -1436,6 +1437,7 @@ public final class Dataset implements Parcelable {
                    android.content.IntentSender.class);
            final String datasetId = parcel.readString();
            final int eligibleReason = parcel.readInt();
            final Bundle authenticationExtras = parcel.readTypedObject(Bundle.CREATOR);

            // Always go through the builder to ensure the data ingested by
            // the system obeys the contract of the builder to avoid attacks
@@ -1480,6 +1482,7 @@ public final class Dataset implements Parcelable {
                        fieldDialogPresentation);
            }
            builder.setAuthentication(authentication);
            builder.setAuthenticationExtras(authenticationExtras);
            builder.setId(datasetId);
            Dataset dataset = builder.build();
            dataset.mEligibleReason = eligibleReason;
+1 −1
Original line number Diff line number Diff line
@@ -3474,7 +3474,7 @@ public final class AutofillManager {
            return false;
        }
        for (String hint : hints) {
            if (Objects.equals(hint, View.AUTOFILL_HINT_CREDENTIAL_MANAGER)) {
            if (hint != null && hint.startsWith(View.AUTOFILL_HINT_CREDENTIAL_MANAGER)) {
                return true;
            }
        }