discord-jadx/app/src/main/java/c/i/a/f/i/b/f6.java

49 lines
1.7 KiB
Java

package c.i.a.f.i.b;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class f6 implements Runnable {
public final /* synthetic */ c6 i;
public f6(c6 c6Var) {
this.i = c6Var;
}
@Override // java.lang.Runnable
public final void run() {
y9 y9Var = this.i.n;
y9Var.a.f().b();
if (y9Var.c()) {
if (y9Var.b()) {
y9Var.a.o().B.b(null);
Bundle bundle = new Bundle();
bundle.putString("source", "(not set)");
bundle.putString("medium", "(not set)");
bundle.putString("_cis", "intent");
bundle.putLong("_cc", 1);
y9Var.a.s().H("auto", "_cmpx", bundle);
} else {
String a = y9Var.a.o().B.a();
if (TextUtils.isEmpty(a)) {
y9Var.a.g().g.a("Cache still valid but referrer not found");
} else {
long a2 = ((y9Var.a.o().C.a() / 3600000) - 1) * 3600000;
Uri parse = Uri.parse(a);
Bundle bundle2 = new Bundle();
Pair pair = new Pair(parse.getPath(), bundle2);
for (String str : parse.getQueryParameterNames()) {
bundle2.putString(str, parse.getQueryParameter(str));
}
((Bundle) pair.second).putLong("_cc", a2);
y9Var.a.s().H((String) pair.first, "_cmp", (Bundle) pair.second);
}
y9Var.a.o().B.b(null);
}
y9Var.a.o().C.b(0);
}
}
}