Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 a.java 源代码,内容仅作参考
package myobfuscated.pd0;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;
import com.picsart.comments.impl.util.ClickType;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class a extends ClickableSpan {
@NotNull
public final String a;
@NotNull
public final ClickType b;
public class C1390a {
public static final int[] a;
static {
int[] iArr = new int[ClickType.values().length];
try {
iArr[ClickType.HASHTAG.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[ClickType.LINK.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[ClickType.USER.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
a = iArr;
}
}
public a(@NotNull String value, @NotNull ClickType clickType) {
Intrinsics.checkNotNullParameter(value, "value");
Intrinsics.checkNotNullParameter(clickType, "clickType");
this.a = value;
this.b = clickType;
}
@Override
public final void onClick(@NotNull View widget) {
Uri parse;
Intrinsics.checkNotNullParameter(widget, "widget");
Context context = widget.getContext();
Intent intent = new Intent("android.intent.action.VIEW");
int i = C1390a.a[this.b.ordinal()];
String str = this.a;
if (i == 1) {
String N = kotlin.text.d.N(str, "#");
parse = Uri.parse("picsart://photos?tag=" + N);
} else if (i == 2) {
parse = Uri.parse(str);
} else if (i != 3) {
throw new NoWhenBranchMatchedException();
} else {
String N2 = kotlin.text.d.N(str, "@");
parse = Uri.parse("https://picsart.com/u/" + N2);
}
intent.setData(parse);
context.startActivity(intent);
}
@Override
public final void updateDrawState(@NotNull TextPaint ds) {
Intrinsics.checkNotNullParameter(ds, "ds");
ds.setUnderlineText(false);
}
}