Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 PasswordChangeDialog.java 源代码,内容仅作参考
package com.picsart.profile.dialogs.passwordchange;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.picsart.dialog.a;
import com.picsart.profile.PasswordChangeViewModel;
import com.picsart.social.ResponseStatus;
import com.picsart.studio.common.constants.EventParam;
import com.picsart.studio.common.constants.SourceParam;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.d;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.h4.a0;
import myobfuscated.h4.z;
import myobfuscated.ik2.h;
import myobfuscated.jl1.b;
import myobfuscated.li1.l;
import myobfuscated.q91.e;
import myobfuscated.tw.g;
import myobfuscated.xk2.q;
import myobfuscated.yn1.c;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"Lcom/picsart/profile/dialogs/passwordchange/PasswordChangeDialog;", "Lmyobfuscated/q91/e;", "Lcom/picsart/dialog/a$a;", "<init>", "()V", "_presenter_compileGlobalReleaseKotlin"}, k = 1, mv = {1, 9, 0})
public final class PasswordChangeDialog extends e implements a.InterfaceC0464a {
@NotNull
public final h e;
public final int f;
public PasswordChangeDialog() {
final Function0<Fragment> function0 = new Function0<Fragment>() {
{
super(0);
}
@Override
@NotNull
public final Fragment invoke() {
return Fragment.this;
}
};
this.e = kotlin.a.a(LazyThreadSafetyMode.NONE, new Function0<PasswordChangeViewModel>() {
{
super(0);
}
@Override
@NotNull
public final PasswordChangeViewModel invoke() {
myobfuscated.i4.a defaultViewModelCreationExtras;
Fragment fragment = Fragment.this;
myobfuscated.yp2.a aVar = r2;
Function0 function02 = function0;
Function0 function03 = r4;
Function0 function04 = r5;
z viewModelStore = ((a0) function02.invoke()).getViewModelStore();
if (function03 == null || (defaultViewModelCreationExtras = (myobfuscated.i4.a) function03.invoke()) == null) {
defaultViewModelCreationExtras = fragment.getDefaultViewModelCreationExtras();
Intrinsics.checkNotNullExpressionValue(defaultViewModelCreationExtras, "this.defaultViewModelCreationExtras");
}
return myobfuscated.op2.a.a(q.a.b(PasswordChangeViewModel.class), viewModelStore, null, defaultViewModelCreationExtras, aVar, myobfuscated.jp2.a.a(fragment), function04);
}
});
this.f = c.a(588.0f);
}
@Override
public final int E3() {
return this.f;
}
@Override
@NotNull
public final View onCreateView(@NotNull LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
Intrinsics.checkNotNullParameter(inflater, "inflater");
PasswordChangeDialogViewImpl passwordChangeDialogViewImpl = new PasswordChangeDialogViewImpl(this, inflater, viewGroup, (PasswordChangeViewModel) this.e.getValue());
passwordChangeDialogViewImpl.Z(this);
return passwordChangeDialogViewImpl.c;
}
@Override
public final void onDismiss(@NotNull DialogInterface dialog) {
Intrinsics.checkNotNullParameter(dialog, "dialog");
super.onDismiss(dialog);
l d = ((PasswordChangeViewModel) this.e.getValue()).l.d();
if ((d != null ? d.a : null) == ResponseStatus.SUCCESS) {
androidx.fragment.app.h activity = getActivity();
b bVar = activity instanceof b ? (b) activity : null;
if (bVar != null) {
bVar.onFragmentFinishWithResultOK(118);
}
}
}
@Override
public final void u1() {
Context context = getContext();
Bundle bundle = new Bundle();
String name = EventParam.SOURCE.name();
SourceParam sourceParam = SourceParam.PROFILE_SETTINGS;
bundle.putString(name, sourceParam.getValue());
bundle.putString("intent.extra.ANALYTICS_SOURCE", sourceParam.getValue());
Unit unit = Unit.a;
myobfuscated.d42.h.h(context, "https://picsart.com/forgot-password?app=1&af=true", bundle);
((PasswordChangeViewModel) this.e.getValue()).f4(new g("self_profile_actions", d.j(new Pair(EventParam.ACTION.getValue(), "forgot_password_button_click"))));
}
@Override
public final void v1(int i, boolean z) {
}
}