what-the-bank/sources/com/google/firebase/iid/zzal.java

44 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.iid;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
/* loaded from: classes.dex */
final class zzal {
private final Messenger zza;
private final zzj zzb;
/* JADX INFO: Access modifiers changed from: package-private */
public zzal(IBinder iBinder) throws RemoteException {
String interfaceDescriptor = iBinder.getInterfaceDescriptor();
if ("android.os.IMessenger".equals(interfaceDescriptor)) {
this.zza = new Messenger(iBinder);
this.zzb = null;
} else {
if ("com.google.android.gms.iid.IMessengerCompat".equals(interfaceDescriptor)) {
this.zzb = new zzj(iBinder);
this.zza = null;
return;
}
throw new RemoteException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zza(Message message) throws RemoteException {
Messenger messenger = this.zza;
if (messenger != null) {
messenger.send(message);
return;
}
zzj zzjVar = this.zzb;
if (zzjVar != null) {
zzjVar.zza(message);
return;
}
throw new IllegalStateException("Both messengers are null");
}
}