- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
64 lines
2.1 KiB
Java
64 lines
2.1 KiB
Java
package com.fyber.inneractive.sdk.click;
|
|
|
|
import android.text.TextUtils;
|
|
import com.fyber.inneractive.sdk.click.l;
|
|
import com.fyber.inneractive.sdk.network.w;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class k implements w<c> {
|
|
public final /* synthetic */ String a;
|
|
public final /* synthetic */ String b;
|
|
public final /* synthetic */ l c;
|
|
|
|
public k(l lVar, String str, String str2) {
|
|
this.c = lVar;
|
|
this.a = str;
|
|
this.b = str2;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.w
|
|
public final void a(c cVar, Exception exc, boolean z) {
|
|
c cVar2 = cVar;
|
|
if (exc != null) {
|
|
l.a(this.c, null, this.a, this.b, exc);
|
|
return;
|
|
}
|
|
if (cVar2 != null) {
|
|
String str = this.a;
|
|
if (cVar2.a.size() > 1) {
|
|
ArrayList arrayList = cVar2.a;
|
|
str = (String) arrayList.get(arrayList.size() - 1);
|
|
}
|
|
b a = this.c.a(str);
|
|
if ((a == null || a.a == l.d.FAILED) && !TextUtils.isEmpty(cVar2.b)) {
|
|
l lVar = this.c;
|
|
lVar.getClass();
|
|
Iterator it = cVar2.a.iterator();
|
|
while (it.hasNext()) {
|
|
String str2 = (String) it.next();
|
|
if (!TextUtils.equals(str2, str)) {
|
|
lVar.e.add(new i(str2, true, l.d.INTERNAL_REDIRECT, null));
|
|
}
|
|
}
|
|
l.a(this.c, cVar2.b, str, this.b, null);
|
|
return;
|
|
}
|
|
l lVar2 = this.c;
|
|
lVar2.getClass();
|
|
Iterator it2 = cVar2.a.iterator();
|
|
while (it2.hasNext()) {
|
|
String str3 = (String) it2.next();
|
|
if (!TextUtils.equals(str3, str)) {
|
|
lVar2.e.add(new i(str3, false, l.d.INTERNAL_REDIRECT, null));
|
|
}
|
|
}
|
|
if (this.c.e.size() == 0) {
|
|
this.c.e.add(new i(str, false, l.d.INTERNAL_REDIRECT, null));
|
|
}
|
|
this.c.a(l.a(str, "followRedirects", "Invalid response"));
|
|
}
|
|
}
|
|
}
|