what-the-bank/sources/com/google/android/gms/internal/p000authapi/zzr.java

31 lines
1.5 KiB
Java

package com.google.android.gms.internal.p000authapi;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.credentials.CredentialsApi;
import com.google.android.gms.auth.api.credentials.HintRequest;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
/* loaded from: classes2.dex */
public final class zzr {
public static PendingIntent zzc(Context context, Auth.AuthCredentialsOptions authCredentialsOptions, HintRequest hintRequest, String str) {
String str2;
Preconditions.checkNotNull(context, "context must not be null");
Preconditions.checkNotNull(hintRequest, "request must not be null");
String zzc = authCredentialsOptions == null ? null : authCredentialsOptions.zzc();
if (TextUtils.isEmpty(str)) {
str2 = zzal.zzr();
} else {
str2 = (String) Preconditions.checkNotNull(str);
}
Intent putExtra = new Intent("com.google.android.gms.auth.api.credentials.PICKER").putExtra("claimedCallingPackage", zzc);
putExtra.putExtra("logSessionId", str2);
SafeParcelableSerializer.serializeToIntentExtra(hintRequest, putExtra, "com.google.android.gms.credentials.HintRequest");
return PendingIntent.getActivity(context, CredentialsApi.CREDENTIAL_PICKER_REQUEST_CODE, putExtra, 134217728);
}
}