正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package mf;
import android.widget.ImageView;
import com.bettertogether.screens.storyly.ConnectionInfoResponse;
import com.bettertogether.screens.storyly.StorylyProfileActivity;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.p;
import lq.m;
import tf.o;
public final class f extends p implements Function1 {
public final int f13871d;
public final g f13872e;
public f(g gVar, int i10) {
super(1);
this.f13871d = i10;
this.f13872e = gVar;
}
public final void invoke(Throwable th2) {
int i10 = this.f13871d;
g gVar = this.f13872e;
switch (i10) {
case 0:
((h) gVar.f583a).hideLoadingDialog();
Intrinsics.checkNotNullExpressionValue(th2, "it");
gVar.b(th2);
break;
default:
((h) gVar.f583a).hideLoadingDialog();
Intrinsics.checkNotNullExpressionValue(th2, "it");
gVar.b(th2);
break;
}
}
public final Object invoke(Object obj) {
switch (this.f13871d) {
case 0:
invoke((Throwable) obj);
break;
case 1:
ConnectionInfoResponse connectionInfoResponse = (ConnectionInfoResponse) obj;
?? r02 = (StorylyProfileActivity) ((h) this.f13872e.f583a);
if (connectionInfoResponse != null) {
r02.getClass();
String photo = connectionInfoResponse.getPhoto();
boolean z4 = photo == null || photo.length() == 0;
m mVar = r02.f5042w;
if (z4) {
bg.b bVar = (bg.b) mVar.getValue();
ImageView imageView = r02.s().f4569c;
Intrinsics.checkNotNullExpressionValue(imageView, "binding.ivProfile");
o oVar = zf.d.f23195a;
bVar.getClass();
bg.b.a(r02, imageView, "https://d376fyzjbo9nop.cloudfront.net/storyly/avatar.png", 0.0f, -1);
} else {
bg.b bVar2 = (bg.b) mVar.getValue();
ImageView imageView2 = r02.s().f4569c;
Intrinsics.checkNotNullExpressionValue(imageView2, "binding.ivProfile");
bVar2.getClass();
bg.b.h(r02, photo, imageView2);
}
r02.s().f4573g.setText(String.valueOf(connectionInfoResponse.getFollowing()));
r02.s().f4572f.setText(String.valueOf(connectionInfoResponse.getFollowers()));
r02.f5039e = !connectionInfoResponse.getFollow();
r02.s().f4568b.setText(r02.getString(r02.f5039e ? 2131952010 : 2131952586));
}
r02.hideLoadingDialog();
break;
default:
invoke((Throwable) obj);
break;
}
return Unit.f12192a;
}
}