导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - UserEditProfileActivity.java 源代码

正在查看: Uptodown App Store v6.80 应用的 UserEditProfileActivity.java JAVA 源代码文件

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


package com.uptodown.activities;

import N1.k;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.core.content.ContextCompat;
import c2.W0;
import com.uptodown.UptodownApp;
import com.uptodown.activities.UserEditProfileActivity;
import kotlin.jvm.internal.AbstractC1009g;

public final class UserEditProfileActivity extends AbstractC0740a {
    public static final a M = new a(null);
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.W0 j32;
            j32 = UserEditProfileActivity.j3(UserEditProfileActivity.this);
            return j32;
        }
    });
    private final ActivityResultLauncher K;
    private final ActivityResultLauncher L;

    public static final class a {
        public a(AbstractC1009g abstractC1009g) {
            this();
        }

        private a() {
        }
    }

    public UserEditProfileActivity() {
        ActivityResultLauncher registerForActivityResult = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                UserEditProfileActivity.r3(UserEditProfileActivity.this, (ActivityResult) obj);
            }
        });
        kotlin.jvm.internal.m.d(registerForActivityResult, "registerForActivityResult(...)");
        this.K = registerForActivityResult;
        ActivityResultLauncher registerForActivityResult2 = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                UserEditProfileActivity.s3(UserEditProfileActivity.this, (ActivityResult) obj);
            }
        });
        kotlin.jvm.internal.m.d(registerForActivityResult2, "registerForActivityResult(...)");
        this.L = registerForActivityResult2;
    }

    public static final W0 j3(UserEditProfileActivity userEditProfileActivity) {
        return W0.c(userEditProfileActivity.getLayoutInflater());
    }

    private final W0 k3() {
        return (W0) this.J.getValue();
    }

    private final void l3() {
        setContentView(k3().getRoot());
        Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
        if (drawable != null) {
            k3().f.setNavigationIcon(drawable);
            k3().f.setNavigationContentDescription(getString(2131951721));
        }
        k3().f.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserEditProfileActivity.m3(UserEditProfileActivity.this, view);
            }
        });
        TextView textView = k3().j;
        k.a aVar = N1.k.g;
        textView.setTypeface(aVar.w());
        k3().k.setTypeface(aVar.w());
        k3().i.setTypeface(aVar.w());
        k3().g.setTypeface(aVar.w());
        k3().h.setTypeface(aVar.w());
        k3().e.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserEditProfileActivity.n3(UserEditProfileActivity.this, view);
            }
        });
        k3().d.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserEditProfileActivity.o3(UserEditProfileActivity.this, view);
            }
        });
        k3().b.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserEditProfileActivity.p3(UserEditProfileActivity.this, view);
            }
        });
        k3().c.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserEditProfileActivity.q3(UserEditProfileActivity.this, view);
            }
        });
    }

    public static final void m3(UserEditProfileActivity userEditProfileActivity, View view) {
        userEditProfileActivity.finish();
    }

    public static final void n3(UserEditProfileActivity userEditProfileActivity, View view) {
        g2.S e = g2.S.m.e(userEditProfileActivity);
        if (e == null) {
            userEditProfileActivity.finish();
            return;
        }
        Intent intent = new Intent((Context) userEditProfileActivity, (Class<?>) UsernameEditActivity.class);
        intent.putExtra("user", e);
        userEditProfileActivity.L.launch(intent, UptodownApp.F.b(userEditProfileActivity));
    }

    public static final void o3(UserEditProfileActivity userEditProfileActivity, View view) {
        if (g2.S.m.e(userEditProfileActivity) == null) {
            userEditProfileActivity.finish();
        } else {
            userEditProfileActivity.K.launch(new Intent((Context) userEditProfileActivity, (Class<?>) PasswordEditActivity.class), UptodownApp.F.b(userEditProfileActivity));
        }
    }

    public static final void p3(UserEditProfileActivity userEditProfileActivity, View view) {
        g2.S e = g2.S.m.e(userEditProfileActivity);
        if (e == null) {
            userEditProfileActivity.finish();
            return;
        }
        Intent intent = new Intent((Context) userEditProfileActivity, (Class<?>) UserAvatarActivity.class);
        intent.putExtra("user", e);
        userEditProfileActivity.L.launch(intent, UptodownApp.F.b(userEditProfileActivity));
    }

    public static final void q3(UserEditProfileActivity userEditProfileActivity, View view) {
        g2.S.m.a(userEditProfileActivity);
        userEditProfileActivity.finish();
    }

    public static final void r3(UserEditProfileActivity userEditProfileActivity, ActivityResult activityResult) {
        if (activityResult.getResultCode() == 2) {
            g2.S.m.a(userEditProfileActivity);
            userEditProfileActivity.setResult(2);
            userEditProfileActivity.finish();
        }
    }

    public static final void s3(UserEditProfileActivity userEditProfileActivity, ActivityResult activityResult) {
        if (activityResult.getResultCode() == 10) {
            userEditProfileActivity.setResult(10);
            userEditProfileActivity.finish();
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        l3();
    }
}