what-the-bank/sources/o/C13087fQa.java

75 lines
2.0 KiB
Java

package o;
import android.content.Context;
import android.content.Intent;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.PluginRegistry;
import java.util.concurrent.atomic.AtomicBoolean;
import o.fPY;
/* renamed from: o.fQa, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13087fQa implements PluginRegistry.ActivityResultListener {
private MethodChannel.Result a;
private AtomicBoolean c;
private final Context e;
public C13087fQa(Context context) {
C14957gcv.e(context, "");
this.e = context;
this.c = new AtomicBoolean(true);
}
public final boolean a(MethodChannel.Result result) {
C14957gcv.e(result, "");
if (this.c.compareAndSet(true, false)) {
fPY.HBt hBt = fPY.a;
C14957gcv.e("", "");
fPY.c = "";
this.c.set(false);
this.a = result;
return true;
}
result.error("Share callback error", "prior share-sheet did not call back, did you await it? Maybe use non-result variant", null);
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void d(String str) {
MethodChannel.Result result;
if (!this.c.compareAndSet(false, true) || (result = this.a) == null) {
return;
}
C14957gcv.e(result);
result.success(str);
this.a = null;
}
@Override // io.flutter.plugin.common.PluginRegistry.ActivityResultListener
public final boolean onActivityResult(int i, int i2, Intent intent) {
String str;
if (i != 22643) {
return false;
}
fPY.HBt hBt = fPY.a;
str = fPY.c;
d(str);
return true;
}
/* renamed from: o.fQa$Sts */
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
static {
new Sts((byte) 0);
}
}