Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 j.java 源代码,内容仅作参考
package myobfuscated.uy1;
import android.net.Uri;
import android.util.Log;
import com.facebook.share.model.ShareLinkContent;
import com.facebook.share.widget.ShareDialog;
import com.picsart.studio.facebook.activity.FacebookAdapterActivity;
import kotlin.jvm.internal.Intrinsics;
public final class j implements myobfuscated.sy1.f {
public final androidx.fragment.app.h a;
public final myobfuscated.sy1.c c;
public final myobfuscated.oj.h d;
public final String b = "https://picsart.com";
public final int e = 26;
public j(androidx.fragment.app.h hVar, myobfuscated.sy1.d dVar, myobfuscated.sy1.c cVar) {
this.a = hVar;
this.c = cVar;
this.d = dVar;
}
@Override
public final void a() {
androidx.fragment.app.h hVar = this.a;
if (hVar == null || hVar.isFinishing()) {
return;
}
ShareLinkContent.a aVar = new ShareLinkContent.a();
aVar.a = Uri.parse(this.b);
ShareLinkContent shareLinkContent = new ShareLinkContent(aVar);
ShareDialog shareDialog = new ShareDialog(hVar);
myobfuscated.oj.g callbackManager = this.c.a;
Intrinsics.checkNotNullParameter(callbackManager, "callbackManager");
myobfuscated.oj.h callback = this.d;
Intrinsics.checkNotNullParameter(callback, "callback");
myobfuscated.oj.g gVar = shareDialog.d;
if (gVar == null) {
shareDialog.d = callbackManager;
} else if (gVar != callbackManager) {
Log.w("FacebookDialog", "You're registering a callback on a Facebook dialog with two different callback managers. It's almost wrong and may cause unexpected results. Only the first callback manager will be used for handling activity result with androidx.");
}
int i = myobfuscated.oj.j.l;
int i2 = this.e;
if (!(!(i2 >= i && i2 < i + 100))) {
throw new IllegalArgumentException(defpackage.d.o("Request code ", i2, " cannot be within the range reserved by the Facebook SDK.").toString());
}
shareDialog.c = i2;
shareDialog.b(callbackManager, callback);
shareDialog.f(shareLinkContent, ShareDialog.Mode.AUTOMATIC);
if (hVar instanceof FacebookAdapterActivity) {
hVar.finish();
}
}
@Override
public final void c() {
this.d.c();
}
@Override
public final void onError(String str) {
this.d.a(null);
}
}