Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 a0.java 源代码,内容仅作参考
package myobfuscated.f02;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.fyber.inneractive.sdk.external.InneractiveMediationNameConsts;
import com.picsart.analytics.event.AnalyticsEvent;
import com.picsart.koin.PAKoinHolder;
import com.picsart.studio.R;
import com.picsart.studio.apiv3.ChannelsEnum;
import com.picsart.studio.apiv3.util.AnalyticUtils;
import com.picsart.studio.common.constants.EventParam;
import com.picsart.studio.common.constants.SourceParam;
import com.picsart.studio.picsart.profile.activity.InviteFriendsAdditionalActivity;
import kotlin.jvm.internal.Intrinsics;
public class a0 extends Fragment implements View.OnClickListener, myobfuscated.qd0.c {
public ViewGroup a;
public String b = InneractiveMediationNameConsts.OTHER;
public String c;
@Override
public final myobfuscated.qp2.a getKoin() {
return PAKoinHolder.e(provideContext());
}
@Override
public final void onActivityCreated(Bundle bundle) {
super.onActivityCreated(bundle);
if (bundle == null) {
this.c = myobfuscated.l02.t.e(getActivity(), true);
myobfuscated.g02.f.g(getActivity(), this.b, this.c);
} else {
this.c = bundle.getString("session_id");
}
this.a.findViewById(R.id.invite_friends_facebook).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_messanger).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_sms).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_email).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_whatsapp).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_more).setOnClickListener(this);
this.a.findViewById(R.id.invite_friends_whatsapp).setVisibility(((myobfuscated.zy.c) PAKoinHolder.a(getActivity(), myobfuscated.zy.c.class)).b("com.whatsapp") ? 0 : 8);
}
@Override
public final void onClick(View view) {
int id = view.getId();
if (id == R.id.invite_friends_facebook) {
androidx.fragment.app.h activity = getActivity();
myobfuscated.sy1.c fbDataAccessor = ((InviteFriendsAdditionalActivity) getActivity()).a;
if (!myobfuscated.ud0.o.a(activity)) {
myobfuscated.j32.c.c(activity);
return;
}
AnalyticUtils d = AnalyticUtils.d(activity);
String e = myobfuscated.l02.t.e(activity, false);
AnalyticsEvent analyticsEvent = new AnalyticsEvent("invite_friends_facebook_post_page_open");
analyticsEvent.b(e, EventParam.INVITE_FLOW_SID.getValue());
d.f(analyticsEvent);
myobfuscated.sy1.e eVar = new myobfuscated.sy1.e(activity);
Intrinsics.checkNotNullParameter("https://picsart.com", "contentUrl");
Intrinsics.checkNotNullParameter(fbDataAccessor, "fbDataAccessor");
myobfuscated.uy1.i.e(activity, fbDataAccessor.a, new myobfuscated.uy1.j(activity, new myobfuscated.sy1.d(eVar), fbDataAccessor), true, "publish_actions");
} else if (id == R.id.invite_friends_messanger) {
androidx.fragment.app.h activity2 = getActivity();
String str = this.b;
String str2 = this.c;
ChannelsEnum channelsEnum = ChannelsEnum.MESSENGER;
channelsEnum.setType("default");
myobfuscated.ul.n.G(activity2, str, channelsEnum, activity2.getString(R.string.install_app_invite_friends_default_url) + channelsEnum.getName(), myobfuscated.g02.f.b(), str2, "1.1", null, new myobfuscated.g02.d(activity2));
} else if (id == R.id.invite_friends_sms) {
myobfuscated.g02.f.d(getActivity(), this.b, this.c, "", "", false, SourceParam.INVITE_FRIENDS.getName(), null);
} else if (id == R.id.invite_friends_email) {
myobfuscated.g02.f.c(getActivity(), this.b, this.c, "", "", false, SourceParam.INVITE_FRIENDS.getName(), null);
} else if (id == R.id.invite_friends_whatsapp) {
myobfuscated.g02.f.e(getActivity(), this.b, this.c);
} else if (id == R.id.invite_friends_more) {
androidx.fragment.app.h activity3 = getActivity();
String str3 = this.b;
String str4 = this.c;
ChannelsEnum channelsEnum2 = ChannelsEnum.MORE;
channelsEnum2.setType("default");
myobfuscated.ul.n.G(activity3, str3, channelsEnum2, activity3.getString(R.string.install_app_invite_friends_default_url) + channelsEnum2.getName(), myobfuscated.g02.f.b(), str4, "1.1", null, new myobfuscated.g02.e(activity3));
}
}
@Override
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(R.layout.fragment_invite_friends_additional, viewGroup, false);
}
@Override
public final void onSaveInstanceState(Bundle bundle) {
bundle.putString("session_id", this.c);
super.onSaveInstanceState(bundle);
}
@Override
public final void onViewCreated(View view, Bundle bundle) {
super.onViewCreated(view, bundle);
this.a = (ViewGroup) view.findViewById(R.id.fragment_invite_friends_additional);
if (getActivity().getIntent().hasExtra("source")) {
this.b = getActivity().getIntent().getStringExtra("source");
}
if (TextUtils.isEmpty(this.b) && getArguments() != null && getArguments().containsKey("source")) {
this.b = getArguments().getString("source");
}
if (TextUtils.isEmpty(this.b)) {
this.b = InneractiveMediationNameConsts.OTHER;
}
}
@Override
public final Context provideContext() {
return myobfuscated.qd0.a.a();
}
}