PhotoRoom v4.8.2版本的 MD5 值为:c40a01bb3380c0f75c0cb6ac6760f295
以下内容为反编译后的 PreferencesAccountActivity.java 源代码,内容仅作参考
package com.photoroom.features.preferences.ui;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import androidx.activity.ComponentActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.f0;
import androidx.lifecycle.a0;
import androidx.lifecycle.b1;
import androidx.lifecycle.g1;
import androidx.lifecycle.k0;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import b10.o0;
import bu.j1;
import com.appboy.Constants;
import com.photoroom.features.background_chooser.BackgroundChooserActivity;
import com.photoroom.features.background_remover.BackgroundRemoverActivity;
import com.photoroom.features.preferences.ui.PreferencesAccountActivity;
import com.photoroom.features.preferences.ui.a;
import com.photoroom.features.preferences.ui.d;
import com.photoroom.features.preferences.ui.e;
import com.photoroom.features.preferences.ui.g;
import com.photoroom.features.upsell.ui.ManageSubscriptionActivity;
import com.photoroom.models.User;
import com.photoroom.models.c;
import com.photoroom.shared.ui.AlertActivity;
import com.shakebugs.shake.internal.domain.models.SystemEvent;
import du.g;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.u;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.t0;
import kotlin.jvm.internal.v;
import lr.a;
import lu.u0;
import px.b0;
import px.c0;
import px.f1;
import px.n0;
import px.x;
import px.z;
import vm.c2;
import w7.i;
import xr.a;
@g1.n
@t0
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b5\u00106J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0004\u001a\u00020\u0002H\u0002J\b\u0010\u0005\u001a\u00020\u0002H\u0002J\u0010\u0010\b\u001a\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u0006H\u0002J\b\u0010\t\u001a\u00020\u0002H\u0002J\b\u0010\n\u001a\u00020\u0002H\u0002J\u0010\u0010\r\u001a\u00020\u00022\u0006\u0010\f\u001a\u00020\u000bH\u0002J\b\u0010\u000e\u001a\u00020\u0002H\u0002J\b\u0010\u000f\u001a\u00020\u0002H\u0002J\b\u0010\u0010\u001a\u00020\u0002H\u0002J\b\u0010\u0011\u001a\u00020\u0002H\u0002J\b\u0010\u0012\u001a\u00020\u0002H\u0002J\b\u0010\u0013\u001a\u00020\u0002H\u0002J\b\u0010\u0014\u001a\u00020\u0002H\u0002J\u0012\u0010\u0017\u001a\u00020\u00022\b\u0010\u0016\u001a\u0004\u0018\u00010\u0015H\u0014J\b\u0010\u0018\u001a\u00020\u0002H\u0014R\u0016\u0010\u001c\u001a\u00020\u00198\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001a\u0010\u001bR\u001b\u0010\"\u001a\u00020\u001d8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!R$\u0010(\u001a\u0012\u0012\u0004\u0012\u00020$0#j\b\u0012\u0004\u0012\u00020$`%8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b&\u0010'R\u0014\u0010,\u001a\u00020)8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b*\u0010+R\u0014\u00100\u001a\u00020-8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b.\u0010/R\u0014\u00104\u001a\u0002018\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b2\u00103¨\u00067"}, d2 = {"Lcom/photoroom/features/preferences/ui/PreferencesAccountActivity;", "Landroidx/appcompat/app/e;", "Lpx/f1;", "A0", "D0", "y0", "", "hasPicture", "N0", "F0", "L0", "Lan/a;", "backgroundRemoverArtifact", "G0", "M0", "P0", "O0", "H0", "I0", "E0", "C0", "Landroid/os/Bundle;", "savedInstanceState", SystemEvent.STATE_APP_LAUNCHED, SystemEvent.STATE_FOREGROUND, "Lvm/c2;", "c", "Lvm/c2;", "binding", "Lcom/photoroom/features/preferences/ui/g;", Constants.APPBOY_PUSH_NOTIFICATION_SOUND_DEFAULT_VALUE, "Lpx/x;", "z0", "()Lcom/photoroom/features/preferences/ui/g;", "viewModel", "Ljava/util/ArrayList;", "Ldu/a;", "Lkotlin/collections/ArrayList;", "e", "Ljava/util/ArrayList;", "cells", "Lcu/c;", "f", "Lcu/c;", "coreAdapter", "Ltr/a;", "g", "Ltr/a;", "accountInfoCell", "Ldu/g;", "h", "Ldu/g;", "userActivityCell", "<init>", "()V", "app_release"}, k = 1, mv = {1, 9, 0})
public final class PreferencesAccountActivity extends androidx.appcompat.app.e {
private c2 f35811c;
private final x f35812d;
private final ArrayList f35813e;
private final cu.c f35814f;
private final tr.a f35815g;
private final du.g f35816h;
public static final class a extends v implements hy.a {
a() {
super(0);
}
@Override
public Object invoke() {
m3543invoke();
return f1.f64673a;
}
public final void m3543invoke() {
PreferencesAccountActivity.this.F0();
}
}
public static final class b extends v implements hy.l {
b() {
super(1);
}
@Override
public Object invoke(Object obj) {
invoke(((Boolean) obj).booleanValue());
return f1.f64673a;
}
public final void invoke(boolean z11) {
PreferencesAccountActivity.this.N0(z11);
}
}
public static final class c extends v implements hy.a {
c() {
super(0);
}
@Override
public Object invoke() {
m3544invoke();
return f1.f64673a;
}
public final void m3544invoke() {
PreferencesAccountActivity.this.M0();
}
}
public static final class d extends v implements hy.a {
d() {
super(0);
}
@Override
public Object invoke() {
m3545invoke();
return f1.f64673a;
}
public final void m3545invoke() {
PreferencesAccountActivity.this.P0();
}
}
public static final class e extends v implements hy.a {
e() {
super(0);
}
@Override
public Object invoke() {
m3546invoke();
return f1.f64673a;
}
public final void m3546invoke() {
PreferencesAccountActivity.this.H0();
}
}
public static final class f extends v implements hy.a {
f() {
super(0);
}
@Override
public Object invoke() {
m3547invoke();
return f1.f64673a;
}
public final void m3547invoke() {
PreferencesAccountActivity.this.O0();
}
}
public static final class g extends v implements hy.a {
g() {
super(0);
}
@Override
public Object invoke() {
m3548invoke();
return f1.f64673a;
}
public final void m3548invoke() {
PreferencesAccountActivity.this.C0();
}
}
public static final class h extends v implements hy.a {
h() {
super(0);
}
@Override
public Object invoke() {
m3549invoke();
return f1.f64673a;
}
public final void m3549invoke() {
PreferencesAccountActivity.this.I0();
}
}
public static final class i extends v implements hy.a {
i() {
super(0);
}
@Override
public Object invoke() {
m3550invoke();
return f1.f64673a;
}
public final void m3550invoke() {
PreferencesAccountActivity.this.z0().f3(PreferencesAccountActivity.this);
}
}
public static final class j extends v implements hy.a {
public static final class a extends v implements hy.a {
final PreferencesAccountActivity f35827g;
a(PreferencesAccountActivity preferencesAccountActivity) {
super(0);
this.f35827g = preferencesAccountActivity;
}
@Override
public Object invoke() {
m3552invoke();
return f1.f64673a;
}
public final void m3552invoke() {
this.f35827g.y0();
}
}
j() {
super(0);
}
@Override
public Object invoke() {
m3551invoke();
return f1.f64673a;
}
public final void m3551invoke() {
PreferencesAccountActivity.this.z0().Y2(new a(PreferencesAccountActivity.this));
}
}
public static final class k extends v implements hy.p {
k() {
super(2);
}
public final void a(androidx.core.graphics.b insets, int i11) {
List e11;
List e12;
t.i(insets, "insets");
c2 c2Var = PreferencesAccountActivity.this.f35811c;
c2 c2Var2 = null;
if (c2Var == null) {
t.A("binding");
c2Var = null;
}
ConstraintLayout root = c2Var.getRoot();
c2 c2Var3 = PreferencesAccountActivity.this.f35811c;
if (c2Var3 == null) {
t.A("binding");
c2Var3 = null;
}
e11 = kotlin.collections.t.e(c2Var3.f76612c);
c2 c2Var4 = PreferencesAccountActivity.this.f35811c;
if (c2Var4 == null) {
t.A("binding");
} else {
c2Var2 = c2Var4;
}
e12 = kotlin.collections.t.e(c2Var2.f76611b);
j1.c(insets, root, e11, e12);
}
@Override
public Object invoke(Object obj, Object obj2) {
a((androidx.core.graphics.b) obj, ((Number) obj2).intValue());
return f1.f64673a;
}
}
public static final class l extends v implements hy.l {
l() {
super(1);
}
public final void a(g.b bVar) {
if (bVar instanceof g.b.C0590b) {
PreferencesAccountActivity.this.finish();
} else if (bVar instanceof g.b.a) {
PreferencesAccountActivity.this.f35815g.u(((g.b.a) bVar).a());
cu.c.r(PreferencesAccountActivity.this.f35814f, PreferencesAccountActivity.this.f35815g, null, 2, null);
}
}
@Override
public Object invoke(Object obj) {
a((g.b) obj);
return f1.f64673a;
}
}
public static final class m extends kotlin.coroutines.jvm.internal.m implements hy.p {
int f35830h;
m(ux.d dVar) {
super(2, dVar);
}
@Override
public final ux.d create(Object obj, ux.d dVar) {
return new m(dVar);
}
@Override
public final Object invoke(o0 o0Var, ux.d dVar) {
return ((m) create(o0Var, dVar)).invokeSuspend(f1.f64673a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object e11;
e11 = vx.d.e();
int i11 = this.f35830h;
if (i11 == 0) {
n0.b(obj);
User user = User.INSTANCE;
this.f35830h = 1;
obj = user.getIdToken(this);
if (obj == e11) {
return e11;
}
} else if (i11 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
n0.b(obj);
}
gu.a.f46685a.b(PreferencesAccountActivity.this, "https://photoroom.typeform.com/to/CuTRvB6R#token=" + ((String) obj));
return f1.f64673a;
}
}
public static final class n extends v implements hy.q {
public static final class a extends v implements hy.l {
final PreferencesAccountActivity f35833g;
final mr.a f35834h;
public static final class C0574a extends kotlin.coroutines.jvm.internal.m implements hy.p {
int f35835h;
final mr.a f35836i;
final PreferencesAccountActivity f35837j;
final an.a f35838k;
public class C0575a {
public static final int[] f35839a;
static {
int[] iArr = new int[mr.a.values().length];
try {
iArr[mr.a.f59327b.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[mr.a.f59328c.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[mr.a.f59329d.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[mr.a.f59330e.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[mr.a.f59331f.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
f35839a = iArr;
}
}
C0574a(mr.a aVar, PreferencesAccountActivity preferencesAccountActivity, an.a aVar2, ux.d dVar) {
super(2, dVar);
this.f35836i = aVar;
this.f35837j = preferencesAccountActivity;
this.f35838k = aVar2;
}
@Override
public final ux.d create(Object obj, ux.d dVar) {
return new C0574a(this.f35836i, this.f35837j, this.f35838k, dVar);
}
@Override
public final Object invoke(o0 o0Var, ux.d dVar) {
return ((C0574a) create(o0Var, dVar)).invokeSuspend(f1.f64673a);
}
@Override
public final Object invokeSuspend(Object obj) {
i.a aVar;
vx.d.e();
if (this.f35835h == 0) {
n0.b(obj);
int i11 = C0575a.f35839a[this.f35836i.ordinal()];
if (i11 == 1) {
aVar = i.a.f78841c;
} else if (i11 == 2) {
aVar = i.a.f78842d;
} else if (i11 == 3) {
aVar = i.a.f78843e;
} else if (i11 == 4) {
aVar = i.a.f78844f;
} else if (i11 != 5) {
throw new c0();
} else {
aVar = i.a.f78845g;
}
w7.f.a().h(aVar);
this.f35837j.G0(this.f35838k);
return f1.f64673a;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
a(PreferencesAccountActivity preferencesAccountActivity, mr.a aVar) {
super(1);
this.f35833g = preferencesAccountActivity;
this.f35834h = aVar;
}
public final void a(an.a backgroundRemoverArtifact) {
t.i(backgroundRemoverArtifact, "backgroundRemoverArtifact");
b10.k.d(a0.a(this.f35833g), null, null, new C0574a(this.f35834h, this.f35833g, backgroundRemoverArtifact, null), 3, null);
}
@Override
public Object invoke(Object obj) {
a((an.a) obj);
return f1.f64673a;
}
}
n() {
super(3);
}
public final void a(Bitmap bitmap, mr.d dVar, mr.a source) {
t.i(bitmap, "bitmap");
t.i(dVar, "<anonymous parameter 1>");
t.i(source, "source");
a.C1759a c1759a = lr.a.f57421p0;
f0 supportFragmentManager = PreferencesAccountActivity.this.getSupportFragmentManager();
t.h(supportFragmentManager, "getSupportFragmentManager(...)");
lr.a a11 = c1759a.a(supportFragmentManager);
if (a11 != null) {
a11.F();
}
BackgroundRemoverActivity.a aVar = BackgroundRemoverActivity.f33626e;
c.b bVar = c.b.f36132i;
PreferencesAccountActivity preferencesAccountActivity = PreferencesAccountActivity.this;
PreferencesAccountActivity.this.startActivity(aVar.a(preferencesAccountActivity, bitmap, false, bVar, new a(preferencesAccountActivity, source)));
}
@Override
public Object invoke(Object obj, Object obj2, Object obj3) {
a((Bitmap) obj, (mr.d) obj2, (mr.a) obj3);
return f1.f64673a;
}
}
public static final class o extends v implements hy.a {
o() {
super(0);
}
@Override
public Object invoke() {
m3553invoke();
return f1.f64673a;
}
public final void m3553invoke() {
w7.f.a().i();
PreferencesAccountActivity.this.L0();
}
}
public static final class p extends v implements hy.a {
public static final class a extends v implements hy.a {
final PreferencesAccountActivity f35842g;
a(PreferencesAccountActivity preferencesAccountActivity) {
super(0);
this.f35842g = preferencesAccountActivity;
}
@Override
public Object invoke() {
m3555invoke();
return f1.f64673a;
}
public final void m3555invoke() {
AlertActivity.a aVar = AlertActivity.f36333f;
PreferencesAccountActivity preferencesAccountActivity = this.f35842g;
String string = preferencesAccountActivity.getString(em.l.f42772x3);
t.h(string, "getString(...)");
aVar.b(preferencesAccountActivity, (r12 & 2) != 0 ? "" : "😕", (r12 & 4) == 0 ? string : "", (r12 & 8) != 0 ? null : null, (r12 & 16) != 0 ? false : false, (r12 & 32) != 0 ? AlertActivity.b.f36339c : null);
}
}
p() {
super(0);
}
public static final void c(DialogInterface dialogInterface, int i11) {
dialogInterface.dismiss();
}
public static final void d(PreferencesAccountActivity this$0, DialogInterface dialogInterface, int i11) {
t.i(this$0, "this$0");
this$0.z0().Z2(new a(this$0));
dialogInterface.dismiss();
}
@Override
public Object invoke() {
m3554invoke();
return f1.f64673a;
}
public final void m3554invoke() {
AlertDialog.Builder positiveButton = new AlertDialog.Builder(PreferencesAccountActivity.this).setTitle(em.l.Da).setMessage(em.l.Ca).setPositiveButton(em.l.f42592l3, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i11) {
PreferencesAccountActivity.p.c(dialogInterface, i11);
}
});
int i11 = em.l.f42693s;
final PreferencesAccountActivity preferencesAccountActivity = PreferencesAccountActivity.this;
positiveButton.setNegativeButton(i11, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i12) {
PreferencesAccountActivity.p.d(PreferencesAccountActivity.this, dialogInterface, i12);
}
}).show();
}
}
public static final class q implements k0, kotlin.jvm.internal.n {
private final hy.l f35843b;
q(hy.l function) {
t.i(function, "function");
this.f35843b = function;
}
@Override
public final void a(Object obj) {
this.f35843b.invoke(obj);
}
@Override
public final px.r b() {
return this.f35843b;
}
public final boolean equals(Object obj) {
if ((obj instanceof k0) && (obj instanceof kotlin.jvm.internal.n)) {
return t.d(b(), ((kotlin.jvm.internal.n) obj).b());
}
return false;
}
public final int hashCode() {
return b().hashCode();
}
}
public static final class r extends v implements hy.a {
final ComponentActivity f35844g;
final s40.a f35845h;
final hy.a f35846i;
final hy.a f35847j;
public r(ComponentActivity componentActivity, s40.a aVar, hy.a aVar2, hy.a aVar3) {
super(0);
this.f35844g = componentActivity;
this.f35845h = aVar;
this.f35846i = aVar2;
this.f35847j = aVar3;
}
@Override
public final b1 invoke() {
m4.a defaultViewModelCreationExtras;
b1 a11;
ComponentActivity componentActivity = this.f35844g;
s40.a aVar = this.f35845h;
hy.a aVar2 = this.f35846i;
hy.a aVar3 = this.f35847j;
g1 viewModelStore = componentActivity.getViewModelStore();
if (aVar2 == null || (defaultViewModelCreationExtras = (m4.a) aVar2.invoke()) == null) {
defaultViewModelCreationExtras = componentActivity.getDefaultViewModelCreationExtras();
t.h(defaultViewModelCreationExtras, "this.defaultViewModelCreationExtras");
}
m4.a aVar4 = defaultViewModelCreationExtras;
u40.a a12 = x30.a.a(componentActivity);
kotlin.reflect.d b11 = kotlin.jvm.internal.o0.b(com.photoroom.features.preferences.ui.g.class);
t.h(viewModelStore, "viewModelStore");
a11 = c40.a.a(b11, viewModelStore, (r16 & 4) != 0 ? null : null, aVar4, (r16 & 16) != 0 ? null : aVar, a12, (r16 & 64) != 0 ? null : aVar3);
return a11;
}
}
public PreferencesAccountActivity() {
x b11;
b11 = z.b(b0.f64658d, new r(this, null, null, null));
this.f35812d = b11;
ArrayList arrayList = new ArrayList();
this.f35813e = arrayList;
this.f35814f = new cu.c(this, arrayList);
tr.a aVar = new tr.a();
aVar.h(true);
this.f35815g = aVar;
this.f35816h = new du.g(g.c.f40265b, null, 0, null, null, null, null, 0, 0, 0, null, null, 0, 8190, null);
}
private final void A0() {
c2 c2Var = this.f35811c;
c2 c2Var2 = null;
if (c2Var == null) {
t.A("binding");
c2Var = null;
}
ConstraintLayout root = c2Var.getRoot();
t.h(root, "getRoot(...)");
Window window = getWindow();
t.h(window, "getWindow(...)");
j1.f(root, window, new k());
c2 c2Var3 = this.f35811c;
if (c2Var3 == null) {
t.A("binding");
c2Var3 = null;
}
c2Var3.f76613d.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PreferencesAccountActivity.B0(PreferencesAccountActivity.this, view);
}
});
c2 c2Var4 = this.f35811c;
if (c2Var4 == null) {
t.A("binding");
} else {
c2Var2 = c2Var4;
}
RecyclerView recyclerView = c2Var2.f76611b;
recyclerView.setHasFixedSize(true);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(this.f35814f);
}
public static final void B0(PreferencesAccountActivity this$0, View view) {
t.i(this$0, "this$0");
this$0.getOnBackPressedDispatcher().f();
}
public final void C0() {
startActivity(ManageSubscriptionActivity.f36031d.a(this));
}
private final void D0() {
z0().d3().observe(this, new q(new l()));
}
private final void E0() {
b10.k.d(a0.a(this), null, null, new m(null), 3, null);
}
public final void F0() {
e.a aVar = com.photoroom.features.preferences.ui.e.Z;
f0 supportFragmentManager = getSupportFragmentManager();
t.h(supportFragmentManager, "getSupportFragmentManager(...)");
aVar.a(this, supportFragmentManager);
}
public final void G0(an.a aVar) {
startActivity(BackgroundChooserActivity.f33614e.a(this, aVar));
}
public final void H0() {
d.a aVar = com.photoroom.features.preferences.ui.d.Z;
f0 supportFragmentManager = getSupportFragmentManager();
t.h(supportFragmentManager, "getSupportFragmentManager(...)");
aVar.a(supportFragmentManager);
}
public final void I0() {
new AlertDialog.Builder(this).setTitle(em.l.G0).setMessage(em.l.F0).setPositiveButton(em.l.E0, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i11) {
PreferencesAccountActivity.J0(PreferencesAccountActivity.this, dialogInterface, i11);
}
}).setNegativeButton(17039360, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i11) {
PreferencesAccountActivity.K0(dialogInterface, i11);
}
}).show();
}
public static final void J0(PreferencesAccountActivity this$0, DialogInterface dialogInterface, int i11) {
t.i(this$0, "this$0");
this$0.E0();
}
public static final void K0(DialogInterface dialogInterface, int i11) {
}
public final void L0() {
lr.a d11 = lr.a.f57421p0.d(new n());
f0 supportFragmentManager = getSupportFragmentManager();
t.h(supportFragmentManager, "getSupportFragmentManager(...)");
d11.t0(this, supportFragmentManager);
}
public final void M0() {
startActivity(new Intent(this, PreferencesAccountPersonaActivity.class));
}
public final void N0(boolean z11) {
List p11;
if (!z11) {
L0();
return;
}
a.C0577a c0577a = com.photoroom.features.preferences.ui.a.f35891g0;
f0 supportFragmentManager = getSupportFragmentManager();
t.h(supportFragmentManager, "getSupportFragmentManager(...)");
String string = getString(em.l.U9);
t.h(string, "getString(...)");
xr.a aVar = new xr.a(string, a.EnumC2598a.f80707b, false, false, new o(), 12, null);
String string2 = getString(em.l.V9);
t.h(string2, "getString(...)");
p11 = u.p(aVar, new xr.a(string2, a.EnumC2598a.f80709d, true, false, new p(), 8, null));
a.C0577a.b(c0577a, supportFragmentManager, p11, false, null, 12, null);
}
public final void O0() {
gu.a.f46685a.b(this, "https://photoroom.com/legal/privacy");
}
public final void P0() {
gu.a.f46685a.b(this, "https://photoroom.com/legal/terms-and-conditions");
}
public final void y0() {
ArrayList arrayList = new ArrayList();
arrayList.add(new du.f(u0.w(16), 0, 2, null));
this.f35815g.g(true);
this.f35815g.s(new a());
this.f35815g.t(new b());
arrayList.add(this.f35815g);
arrayList.add(new du.f(u0.w(24), 0, 2, null));
g.c cVar = g.c.f40269f;
String string = getString(em.l.N9);
t.h(string, "getString(...)");
User user = User.INSTANCE;
du.g gVar = new du.g(cVar, string, 0, user.getLoginService(), null, null, null, 0, 0, 0, null, null, 0, 8180, null);
gVar.h(true);
arrayList.add(gVar);
du.g gVar2 = this.f35816h;
String string2 = getString(em.l.X2);
t.h(string2, "getString(...)");
gVar2.b0(string2);
this.f35816h.d0(bt.i.f15079b.a(user.getPreferences().getPersona()).d(this));
this.f35816h.Q(new c());
this.f35816h.k(true);
arrayList.add(this.f35816h);
arrayList.add(new du.f(u0.w(32), 0, 2, null));
g.c cVar2 = g.c.f40265b;
String string3 = getString(em.l.R9);
t.h(string3, "getString(...)");
du.g gVar3 = new du.g(cVar2, string3, 0, null, null, null, null, 0, 0, 0, null, null, 0, 8188, null);
gVar3.h(true);
gVar3.Q(new d());
arrayList.add(gVar3);
String string4 = getString(em.l.G9);
t.h(string4, "getString(...)");
du.g gVar4 = new du.g(cVar2, string4, 0, null, null, null, null, 0, 0, 0, null, null, 0, 8188, null);
gVar4.Q(new e());
arrayList.add(gVar4);
String string5 = getString(em.l.Q9);
t.h(string5, "getString(...)");
du.g gVar5 = new du.g(cVar2, string5, 0, null, null, null, null, 0, 0, 0, null, null, 0, 8188, null);
gVar5.Q(new f());
arrayList.add(gVar5);
String string6 = getString(em.l.f42796yc);
t.h(string6, "getString(...)");
du.g gVar6 = new du.g(cVar2, string6, 0, null, null, null, null, 0, 0, 0, null, null, 0, 8188, null);
gVar6.k(true);
gVar6.Q(new g());
arrayList.add(gVar6);
arrayList.add(new du.f(u0.w(32), 0, 2, null));
if (z0().e3()) {
du.g gVar7 = new du.g(g.c.f40268e, "Log out from Etsy", 0, null, null, null, null, 0, 0, 0, null, null, 0, 8188, null);
gVar7.m(true);
gVar7.Q(new j());
arrayList.add(gVar7);
arrayList.add(new du.f(u0.w(32), 0, 2, null));
}
g.c cVar3 = g.c.f40268e;
String string7 = getString(em.l.M9);
t.h(string7, "getString(...)");
du.g gVar8 = new du.g(cVar3, string7, em.c.f41831v, null, null, null, null, 0, 0, 0, null, null, 0, 8184, null);
gVar8.m(true);
gVar8.Q(new i());
arrayList.add(gVar8);
arrayList.add(new du.f(u0.w(32), 0, 2, null));
String string8 = getString(em.l.K9);
t.h(string8, "getString(...)");
du.g gVar9 = new du.g(cVar3, string8, em.c.N, null, null, null, null, 0, 0, 0, null, null, 0, 8184, null);
gVar9.m(true);
gVar9.Q(new h());
arrayList.add(gVar9);
arrayList.add(new du.f(u0.w(16), 0, 2, null));
ArrayList<du.g> arrayList2 = new ArrayList();
for (Object obj : arrayList) {
if (obj instanceof du.g) {
arrayList2.add(obj);
}
}
for (du.g gVar10 : arrayList2) {
gVar10.g(true);
}
cu.c.t(this.f35814f, arrayList, false, 2, null);
}
public final com.photoroom.features.preferences.ui.g z0() {
return (com.photoroom.features.preferences.ui.g) this.f35812d.getValue();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
c2 c11 = c2.c(getLayoutInflater());
t.h(c11, "inflate(...)");
this.f35811c = c11;
if (c11 == null) {
t.A("binding");
c11 = null;
}
setContentView(c11.getRoot());
A0();
D0();
y0();
}
@Override
public void onResume() {
super.onResume();
this.f35816h.d0(bt.i.f15079b.a(User.INSTANCE.getPreferences().getPersona()).d(this));
cu.c.r(this.f35814f, this.f35816h, null, 2, null);
}
}