Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.picsart.maintabs.deepLink.tab;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.fragment.app.h;
import com.picsart.maintabs.MainTabRootFragment;
import com.picsart.studio.common.constants.SourceParam;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.h4.k;
import myobfuscated.u21.b;
import myobfuscated.ud0.o;
import myobfuscated.xk2.q;
import myobfuscated.xk2.r;
import org.jetbrains.annotations.NotNull;
import org.koin.core.scope.Scope;
public final class a implements b {
@Override
public final void a(@NotNull Bundle arguments, @NotNull MainTabRootFragment fragment, String str) {
Intrinsics.checkNotNullParameter(fragment, "fragment");
Intrinsics.checkNotNullParameter(arguments, "arguments");
h activity = fragment.getActivity();
if (activity == null || activity.isFinishing()) {
return;
}
Scope a = myobfuscated.jp2.a.a(fragment);
r rVar = q.a;
myobfuscated.n21.a aVar = (myobfuscated.n21.a) a.b(null, rVar.b(myobfuscated.n21.a.class), null);
String string = arguments.getString("intent.extra.ANALYTICS_METHOD");
Context context = fragment.getContext();
aVar.b(context != null ? Boolean.valueOf(o.a(context)) : null, string);
String string2 = arguments.getString("URI");
if (string2 == null || string2.length() == 0 || Intrinsics.c(string2, "picsart://challenges") || Intrinsics.c(string2, "https://picsart.com/challenges")) {
String string3 = arguments.getString("challenges_challenge_id");
String string4 = arguments.getString("extra.deep.link.url");
if (string3 == null || string3.length() == 0) {
((myobfuscated.kz1.a) myobfuscated.jp2.a.a(fragment).b(null, rVar.b(myobfuscated.kz1.a.class), null)).a(activity);
return;
}
k viewLifecycleOwner = fragment.getViewLifecycleOwner();
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
myobfuscated.ee0.b.e(viewLifecycleOwner, new ChallengesHandler$fetchAndHandleWithChallengeWithId$1(fragment, string3, arguments, this, string4, null));
return;
}
String string5 = arguments.getString("intent.extra.ANALYTICS_SOURCE");
if (string5 == null) {
string5 = SourceParam.PUSH.getValue();
}
if ("https://picsart.com/challenge/".equals(string2)) {
return;
}
if (string2.startsWith("https://picsart.com/challenge/")) {
int lastIndexOf = string2.lastIndexOf("/") + 1;
int indexOf = string2.indexOf("-");
if (lastIndexOf > 0 && indexOf > 0) {
String substring = string2.substring(string2.lastIndexOf("/") + 1, string2.indexOf("-"));
Intent intent = new Intent();
intent.setClassName(activity, "com.picsart.challenge.activity.ChallengesActivity");
intent.setFlags(335544320);
myobfuscated.an1.o.g(Uri.parse(string2), intent);
intent.putExtra("intent.extra.CHALLENGE_ID", substring);
intent.putExtra("intent.extra.ANALYTICS_SOURCE", string5);
intent.putExtra("intent.extra.CHALLENGE.from.cache", false);
activity.startActivity(intent);
return;
}
}
String queryParameter = Uri.parse(string2).getQueryParameter("id");
if (TextUtils.isEmpty(queryParameter) && string2.startsWith("https")) {
queryParameter = string2.substring(string2.lastIndexOf("/") + 1, string2.contains("?") ? string2.lastIndexOf("?") : string2.length());
}
if (TextUtils.isEmpty(queryParameter)) {
return;
}
Intent intent2 = new Intent();
intent2.setClassName(activity, "com.picsart.challenge.activity.ChallengesActivity");
intent2.setFlags(335544320);
intent2.putExtra("intent.extra.CHALLENGE_ID", queryParameter);
intent2.putExtra("intent.extra.ANALYTICS_SOURCE", string5);
intent2.putExtra("intent.extra.CHALLENGE.from.cache", false);
myobfuscated.an1.o.g(Uri.parse(string2), intent2);
activity.startActivity(intent2);
}
}