正在查看: BetterTogether v3.0.0 应用的 StorylyProfileActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 StorylyProfileActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bettertogether.screens.storyly;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import aq.i;
import bg.b;
import cd.f0;
import cd.z;
import com.bettertogether.base.BaseActivity;
import com.bettertogether.screens.storyly.ConnectionFollowUnfollowRequest;
import com.bettertogether.screens.storyly.StorylyProfileActivity;
import com.google.android.material.textview.MaterialTextView;
import com.google.firebase.messaging.e;
import dd.s;
import fs.d;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import lq.m;
import lq.n;
import lq.o;
import lq.p;
import lq.x;
import md.l;
import mf.g;
import mf.h;
import xs.c;
import zs.a;
@Metadata
public final class StorylyProfileActivity extends BaseActivity implements h {
public static final int f5038y = 0;
public boolean f5039e;
public String f5040i;
public final m f5041v;
public final m f5042w;
public final x f5043x;
public StorylyProfileActivity() {
s8.h s10 = e.s(this);
a a10 = ((ys.a) s10.a).a(e.o(), new c(g0.a(StorylyProfileActivity.class)));
mf.c cVar = new mf.c(this, 1);
o oVar = o.f13215d;
this.f5041v = n.a(oVar, new l(a10, cVar, 27));
this.f5042w = n.a(oVar, new s(this, 28));
this.f5043x = n.b(new mf.c(this, 0));
}
@Override
public final void attachBaseContext(Context context) {
super.attachBaseContext(context);
d.D(this, context);
}
@Override
public final View getView() {
RelativeLayout relativeLayout = s().f4567a;
Intrinsics.checkNotNullExpressionValue(relativeLayout, "binding.root");
return relativeLayout;
}
@Override
public final void hideLoadingDialog() {
super.hideLoadingDialog();
s().f4570d.a();
}
@Override
public final void initViews() {
String stringExtra = getIntent().getStringExtra("param_user_id");
this.f5040i = stringExtra;
if (stringExtra != null) {
((g) this.f5041v.getValue()).d(stringExtra);
}
String stringExtra2 = getIntent().getStringExtra("param_user_name");
f0 f0Var = s().f4571e;
MaterialTextView materialTextView = f0Var.f4228h;
if (stringExtra2 == null) {
stringExtra2 = "Profile";
}
materialTextView.setText(stringExtra2);
final int i10 = 0;
f0Var.f4223c.setOnClickListener(new View.OnClickListener(this) {
public final StorylyProfileActivity f13864e;
{
this.f13864e = this;
}
@Override
public final void onClick(View view) {
int i11;
int i12 = i10;
?? r02 = this.f13864e;
switch (i12) {
case 0:
int i13 = StorylyProfileActivity.f5038y;
Intrinsics.checkNotNullParameter((Object) r02, "this$0");
r02.finish();
return;
default:
int i14 = StorylyProfileActivity.f5038y;
Intrinsics.checkNotNullParameter((Object) r02, "this$0");
boolean z4 = r02.f5039e;
if (z4) {
i11 = 1;
} else {
if (z4) {
throw new p();
}
i11 = 2;
}
String str = r02.f5040i;
if (str != null) {
ConnectionFollowUnfollowRequest connectionFollowUnfollowRequest = new ConnectionFollowUnfollowRequest(str, Integer.valueOf(g0.b.b(i11)));
g gVar = (g) r02.f5041v.getValue();
gVar.getClass();
Intrinsics.checkNotNullParameter(connectionFollowUnfollowRequest, "request");
((h) gVar.f583a).showLoadingDialog();
i iVar = new i(com.android.billingclient.api.a.h(Unit.f12192a, "just(view.showLoadingDialog())"), new fe.l(5, new e(gVar, connectionFollowUnfollowRequest)), 0);
Intrinsics.checkNotNullExpressionValue(iVar, "fun followUnfollowUser(r… .addDisposable()\n }");
aq.e eVar = new aq.e(new aq.e(kotlin.jvm.internal.o.D0(iVar), new p000if.d(17, new e(connectionFollowUnfollowRequest, gVar)), 2), new p000if.d(18, new f(gVar, 0)), 0);
Intrinsics.checkNotNullExpressionValue(eVar, "fun followUnfollowUser(r… .addDisposable()\n }");
com.bumptech.glide.d.m(gVar, eVar);
r02.f5039e = !r02.f5039e;
return;
}
return;
}
}
});
final int i11 = 1;
s().f4568b.setOnClickListener(new View.OnClickListener(this) {
public final StorylyProfileActivity f13864e;
{
this.f13864e = this;
}
@Override
public final void onClick(View view) {
int i112;
int i12 = i11;
?? r02 = this.f13864e;
switch (i12) {
case 0:
int i13 = StorylyProfileActivity.f5038y;
Intrinsics.checkNotNullParameter((Object) r02, "this$0");
r02.finish();
return;
default:
int i14 = StorylyProfileActivity.f5038y;
Intrinsics.checkNotNullParameter((Object) r02, "this$0");
boolean z4 = r02.f5039e;
if (z4) {
i112 = 1;
} else {
if (z4) {
throw new p();
}
i112 = 2;
}
String str = r02.f5040i;
if (str != null) {
ConnectionFollowUnfollowRequest connectionFollowUnfollowRequest = new ConnectionFollowUnfollowRequest(str, Integer.valueOf(g0.b.b(i112)));
g gVar = (g) r02.f5041v.getValue();
gVar.getClass();
Intrinsics.checkNotNullParameter(connectionFollowUnfollowRequest, "request");
((h) gVar.f583a).showLoadingDialog();
i iVar = new i(com.android.billingclient.api.a.h(Unit.f12192a, "just(view.showLoadingDialog())"), new fe.l(5, new e(gVar, connectionFollowUnfollowRequest)), 0);
Intrinsics.checkNotNullExpressionValue(iVar, "fun followUnfollowUser(r… .addDisposable()\n }");
aq.e eVar = new aq.e(new aq.e(kotlin.jvm.internal.o.D0(iVar), new p000if.d(17, new e(connectionFollowUnfollowRequest, gVar)), 2), new p000if.d(18, new f(gVar, 0)), 0);
Intrinsics.checkNotNullExpressionValue(eVar, "fun followUnfollowUser(r… .addDisposable()\n }");
com.bumptech.glide.d.m(gVar, eVar);
r02.f5039e = !r02.f5039e;
return;
}
return;
}
}
});
b bVar = (b) this.f5042w.getValue();
ImageView imageView = s().f4569c;
Intrinsics.checkNotNullExpressionValue(imageView, "binding.ivProfile");
tf.o oVar = zf.d.f23195a;
bVar.getClass();
b.a(this, imageView, "https://d376fyzjbo9nop.cloudfront.net/storyly/avatar.png", 0.0f, -1);
}
@Override
public final void onBackPressed() {
finish();
}
@Override
public final ad.a providePresenter() {
return (g) this.f5041v.getValue();
}
public final z s() {
return (z) this.f5043x.getValue();
}
@Override
public final void showLoadingDialog() {
super.showLoadingDialog();
s().f4570d.b();
}
}