42 lines
1.6 KiB
Java
42 lines
1.6 KiB
Java
|
package com.google.android.gms.common.internal;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.os.IBinder;
|
||
|
import android.os.IInterface;
|
||
|
import android.view.View;
|
||
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
||
|
import com.google.android.gms.dynamic.RemoteCreator;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zaz extends RemoteCreator<zam> {
|
||
|
private static final zaz zaa = new zaz();
|
||
|
|
||
|
private zaz() {
|
||
|
super("com.google.android.gms.common.ui.SignInButtonCreatorImpl");
|
||
|
}
|
||
|
|
||
|
public static View zaa(Context context, int i, int i2) throws RemoteCreator.RemoteCreatorException {
|
||
|
zaz zazVar = zaa;
|
||
|
try {
|
||
|
zax zaxVar = new zax(1, i, i2, null);
|
||
|
return (View) ObjectWrapper.unwrap(zazVar.getRemoteCreatorInstance(context).zae(ObjectWrapper.wrap(context), zaxVar));
|
||
|
} catch (Exception e) {
|
||
|
StringBuilder sb = new StringBuilder(64);
|
||
|
sb.append("Could not get button with size ");
|
||
|
sb.append(i);
|
||
|
sb.append(" and color ");
|
||
|
sb.append(i2);
|
||
|
throw new RemoteCreator.RemoteCreatorException(sb.toString(), e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.dynamic.RemoteCreator
|
||
|
public final /* synthetic */ zam getRemoteCreator(IBinder iBinder) {
|
||
|
if (iBinder == null) {
|
||
|
return null;
|
||
|
}
|
||
|
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ISignInButtonCreator");
|
||
|
return queryLocalInterface instanceof zam ? (zam) queryLocalInterface : new zam(iBinder);
|
||
|
}
|
||
|
}
|