正在查看: BetterTogether v3.0.0 应用的 EditGroupActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 EditGroupActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bettertogether.screens.group.edit;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import androidx.constraintlayout.widget.ConstraintLayout;
import cn.b;
import com.bettertogether.remote.model.common.GroupData;
import com.bettertogether.remote.model.request.GroupRequest;
import com.google.firebase.messaging.e;
import dd.s;
import java.io.File;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import lq.m;
import lq.o;
import lq.x;
import md.l;
import re.n;
import s6.a0;
import s8.h;
import se.a;
import xh.k;
import xs.c;
import zc.u;
@Metadata
public final class EditGroupActivity extends u implements n, a {
public static final a0 M = new a0(25, 0);
public static final int N = k.p();
public static final int O = (int) b.e().f("floor_default");
public static final int P = (int) b.e().f("water_default");
public static final String[] Q = {"4", "6", "8", "10", "12", "14", "16", "18", "20", "22", "24", "26", "28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52"};
public final m f4990e;
public final m f4991i;
public final x f4992v;
public GroupRequest f4993w;
public GroupData f4994x;
public int f4995y;
public EditGroupActivity() {
h s10 = e.s(this);
zs.a a10 = ((ys.a) s10.a).a(e.o(), new c(g0.a(EditGroupActivity.class)));
re.e eVar = new re.e(this, 1);
o oVar = o.f13215d;
this.f4990e = lq.n.a(oVar, new l(a10, eVar, 11));
this.f4991i = lq.n.a(oVar, new s(this, 17));
this.f4992v = lq.n.b(new re.e(this, 0));
}
@Override
public final View getView() {
ConstraintLayout constraintLayout = t().f4242a;
Intrinsics.checkNotNullExpressionValue(constraintLayout, "binding.root");
return constraintLayout;
}
@Override
public final void hideLoadingDialog() {
t().f4250i.a();
enableViews();
}
@Override
public final void initViews() {
throw new UnsupportedOperationException("Method not decompiled: com.bettertogether.screens.group.edit.EditGroupActivity.initViews():void");
}
@Override
public final void onBackPressed() {
s();
}
@Override
public final void onImageFileReady(Pair pair) {
Intrinsics.checkNotNullParameter(pair, "result");
File file = (File) pair.f12191e;
if (file != null) {
bg.b bVar = (bg.b) this.f4991i.getValue();
ImageView imageView = t().f4244c;
Intrinsics.checkNotNullExpressionValue(imageView, "binding.btnAvatar");
bVar.getClass();
bg.b.e(this, file, imageView, true);
GroupRequest groupRequest = this.f4993w;
if (groupRequest == null) {
Intrinsics.m("request");
throw null;
}
groupRequest.setGroupCover(file);
u();
}
}
@Override
public final ad.a providePresenter() {
return (re.m) this.f4990e.getValue();
}
public final void s() {
GroupRequest groupRequest = this.f4993w;
if (groupRequest == null) {
Intrinsics.m("request");
throw null;
}
if (!groupRequest.hasAnyEditChanges()) {
finish();
return;
}
h.k kVar = new h.k((Context) this);
kVar.u(2131951687);
kVar.o(2131951894);
kVar.s(2131951893, new re.c(this, 0));
kVar.q(2131951723, null);
kVar.f().show();
}
@Override
public final void showLoadingDialog() {
disableViews();
t().f4250i.b();
}
public final cd.h t() {
return (cd.h) this.f4992v.getValue();
}
public final void u() {
GroupRequest groupRequest = this.f4993w;
if (groupRequest == null) {
Intrinsics.m("request");
throw null;
}
if (groupRequest.hasAnyEditChanges()) {
t().f4245d.setBackground(z2.h.getDrawable(this, 2131230928));
} else {
t().f4245d.setBackground(z2.h.getDrawable(this, 2131231010));
}
}
}