- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
59 lines
1.7 KiB
Java
59 lines
1.7 KiB
Java
package com.fyber.inneractive.sdk.util;
|
|
|
|
import android.app.Activity;
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import com.google.android.gms.drive.DriveFile;
|
|
import java.util.PriorityQueue;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class q {
|
|
public static boolean a(Context context, k kVar) {
|
|
v0 v0Var;
|
|
PriorityQueue priorityQueue = kVar.a;
|
|
do {
|
|
v0Var = (v0) priorityQueue.poll();
|
|
if (v0Var == null) {
|
|
break;
|
|
}
|
|
} while (!a(context, v0Var.b));
|
|
boolean z = false;
|
|
if (v0Var == null) {
|
|
return false;
|
|
}
|
|
Intent intent = new Intent("android.intent.action.VIEW", v0Var.b);
|
|
if (context != null) {
|
|
if (!(context instanceof Activity)) {
|
|
intent.addFlags(DriveFile.MODE_READ_ONLY);
|
|
}
|
|
try {
|
|
context.startActivity(intent);
|
|
z = true;
|
|
} catch (ActivityNotFoundException unused) {
|
|
}
|
|
}
|
|
if (z) {
|
|
for (String str : v0Var.c) {
|
|
TextUtils.isEmpty(str);
|
|
com.fyber.inneractive.sdk.network.j0.b(str);
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
public static boolean a(Context context, Uri uri) {
|
|
if (context == null || uri == null) {
|
|
return false;
|
|
}
|
|
try {
|
|
return !context.getPackageManager().queryIntentActivities(new Intent("android.intent.action.VIEW", uri), 0).isEmpty();
|
|
} catch (Exception unused) {
|
|
IAlog.a("%sFyberDeepLink: Invalid url ", uri);
|
|
return false;
|
|
}
|
|
}
|
|
}
|