67 lines
1.2 KiB
Java
67 lines
1.2 KiB
Java
package com.facebook.internal;
|
|
|
|
import android.content.Intent;
|
|
import java.util.UUID;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AppCall {
|
|
private static AppCall d;
|
|
private UUID a;
|
|
private Intent b;
|
|
private int c;
|
|
|
|
public AppCall(int i) {
|
|
this(i, UUID.randomUUID());
|
|
}
|
|
|
|
public static synchronized AppCall a(UUID uuid, int i) {
|
|
synchronized (AppCall.class) {
|
|
AppCall e = e();
|
|
if (e != null && e.a().equals(uuid) && e.b() == i) {
|
|
a((AppCall) null);
|
|
return e;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static AppCall e() {
|
|
return d;
|
|
}
|
|
|
|
public int b() {
|
|
return this.c;
|
|
}
|
|
|
|
public Intent c() {
|
|
return this.b;
|
|
}
|
|
|
|
public boolean d() {
|
|
return a(this);
|
|
}
|
|
|
|
public AppCall(int i, UUID uuid) {
|
|
this.a = uuid;
|
|
this.c = i;
|
|
}
|
|
|
|
private static synchronized boolean a(AppCall appCall) {
|
|
boolean z;
|
|
synchronized (AppCall.class) {
|
|
AppCall e = e();
|
|
d = appCall;
|
|
z = e != null;
|
|
}
|
|
return z;
|
|
}
|
|
|
|
public UUID a() {
|
|
return this.a;
|
|
}
|
|
|
|
public void a(Intent intent) {
|
|
this.b = intent;
|
|
}
|
|
}
|