导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - ViewAccountActivity.java 源代码

正在查看: BetterTogether v3.0.0 应用的 ViewAccountActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bettertogether.screens.account.edit;

import android.content.res.ColorStateList;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.constraintlayout.widget.ConstraintLayout;
import be.q;
import be.t;
import be.v;
import cd.b0;
import cd.f0;
import com.adapty.ui.internal.mapping.viewconfig.ViewConfigurationMapper;
import com.bettertogether.cache.preferences.PreferenceData;
import com.bettertogether.remote.model.common.UserData;
import com.bettertogether.remote.model.request.WaterReminderResponse;
import com.bettertogether.screens.account.edit.EditAccountActivity;
import com.bettertogether.screens.account.edit.ViewAccountActivity;
import com.google.android.material.textview.MaterialTextView;
import com.google.firebase.messaging.e;
import dd.s;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import lq.m;
import lq.n;
import lq.o;
import lq.x;
import md.l;
import s8.h;
import xs.c;
import ys.a;
import zd.b;

@Metadata
public final class ViewAccountActivity extends b implements q {
    public static final int M = 0;

    public final m f4971i;

    public final x f4972v;

    public final m f4973w;

    public final x f4974x;

    public final UserData f4975y;

    public ViewAccountActivity() {
        o oVar = o.f13215d;
        this.f4971i = n.a(oVar, new s(this, 6));
        this.f4972v = n.b(new t(this, 0));
        h s10 = e.s(this);
        this.f4973w = n.a(oVar, new l(((a) s10.a).a(e.o(), new c(g0.a(ViewAccountActivity.class))), new t(this, 2), 3));
        x b2 = n.b(new t(this, 1));
        this.f4974x = b2;
        this.f4975y = ((PreferenceData) b2.getValue()).l();
    }

    public final b0 A() {
        return (b0) this.f4972v.getValue();
    }

    public final void B(com.bettertogether.remote.model.common.UserData r9) {
        throw new UnsupportedOperationException("Method not decompiled: com.bettertogether.screens.account.edit.ViewAccountActivity.B(com.bettertogether.remote.model.common.UserData):void");
    }

    @Override
    public final void a() {
        throw new lq.q("An operation is not implemented: Not yet implemented");
    }

    @Override
    public final void b() {
        throw new lq.q("An operation is not implemented: Not yet implemented");
    }

    public final View getView() {
        ConstraintLayout constraintLayout = A().f4142a;
        Intrinsics.checkNotNullExpressionValue(constraintLayout, "binding.root");
        return constraintLayout;
    }

    @Override
    public final void h(WaterReminderResponse waterReminderResponse) {
        Intrinsics.checkNotNullParameter(waterReminderResponse, ViewConfigurationMapper.DATA);
    }

    @Override
    public final void hideLoadingDialog() {
    }

    @Override
    public final void i(UserData userData) {
        Intrinsics.checkNotNullParameter(userData, "updatedUserData");
        RelativeLayout relativeLayout = A().f4154m;
        Intrinsics.checkNotNullExpressionValue(relativeLayout, "binding.rlWaterReminder");
        Boolean waterReminder = userData.getWaterReminder();
        relativeLayout.setVisibility(waterReminder != null ? waterReminder.booleanValue() : false ? 0 : 8);
        B(userData);
    }

    @Override
    public final void initViews() {
        b0 A = A();
        A.f4143b.f4228h.setText(getString(2131952258));
        f0 f0Var = A.f4143b;
        final int i10 = 0;
        f0Var.f4223c.setOnClickListener(new View.OnClickListener(this) {

            public final ViewAccountActivity f3444e;

            {
                this.f3444e = this;
            }

            @Override
            public final void onClick(View view) {
                zc.l lVar = this.f3444e;
                switch (i10) {
                    case 0:
                        int i11 = ViewAccountActivity.M;
                        Intrinsics.checkNotNullParameter(lVar, "this$0");
                        lVar.onBackPressed();
                        break;
                    default:
                        int i12 = ViewAccountActivity.M;
                        Intrinsics.checkNotNullParameter(lVar, "this$0");
                        int i13 = EditAccountActivity.U;
                        lVar.startActivity(s6.s.q(lVar, false, false, true, 6));
                        break;
                }
            }
        });
        MaterialTextView materialTextView = f0Var.f4227g;
        Intrinsics.checkNotNullExpressionValue(materialTextView, "appBar.tvEnd");
        materialTextView.setVisibility(0);
        materialTextView.setText("");
        ColorStateList valueOf = ColorStateList.valueOf(z2.h.getColor(this, 2131099695));
        materialTextView.getClass();
        p3.m.f(materialTextView, valueOf);
        materialTextView.setCompoundDrawablesWithIntrinsicBounds(2131231078, 0, 0, 0);
        final int i11 = 1;
        materialTextView.setOnClickListener(new View.OnClickListener(this) {

            public final ViewAccountActivity f3444e;

            {
                this.f3444e = this;
            }

            @Override
            public final void onClick(View view) {
                zc.l lVar = this.f3444e;
                switch (i11) {
                    case 0:
                        int i112 = ViewAccountActivity.M;
                        Intrinsics.checkNotNullParameter(lVar, "this$0");
                        lVar.onBackPressed();
                        break;
                    default:
                        int i12 = ViewAccountActivity.M;
                        Intrinsics.checkNotNullParameter(lVar, "this$0");
                        int i13 = EditAccountActivity.U;
                        lVar.startActivity(s6.s.q(lVar, false, false, true, 6));
                        break;
                }
            }
        });
        B(this.f4975y);
    }

    @Override
    public final void navigateToLoginScreen() {
        throw new lq.q("An operation is not implemented: Not yet implemented");
    }

    public final ad.a providePresenter() {
        return (v) this.f4973w.getValue();
    }

    @Override
    public final void showLoadingDialog() {
    }

    @Override
    public final void x(String str, String str2) {
        Intrinsics.checkNotNullParameter(str, "displayDate");
        Intrinsics.checkNotNullParameter(str2, "requestDate");
    }

    @Override
    public final void y(rd.a aVar, float f10, String str) {
        Intrinsics.checkNotNullParameter(aVar, "heightSystem");
        Intrinsics.checkNotNullParameter(str, "displayValue");
    }
}