导航菜单

页面标题

页面副标题

Share Any v2.1.7 - ProfileEditorActivity.java 源代码

正在查看: Share Any v2.1.7 应用的 ProfileEditorActivity.java JAVA 源代码文件

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


package net.shareany.app.activity;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.activity.l;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.k;
import com.google.android.material.appbar.AppBarLayout;
import ed.i;
import i4.d;
import i4.f;
import j4.g;
import m4.e;
import m5.h;
import org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest;
import s5.c;

public class ProfileEditorActivity extends ed.b {
    public static String E = h.a(new byte[]{1, 121, 16, 115, 5, 94, 2, 115, 11, 108}, new byte[]{100, 1});
    public c B;
    public b C;
    public Drawable D;

    public class a implements j4.h<Drawable> {
        public a() {
        }

        public void a(g gVar) {
        }

        public void b(Drawable drawable) {
        }

        public void c(d dVar) {
        }

        public void d(g gVar) {
        }

        public void e(Drawable drawable) {
        }

        public d f() {
            return null;
        }

        public void g(Drawable drawable) {
        }

        public void h(Object obj, k4.b bVar) {
            ProfileEditorActivity.this.x((Drawable) obj);
        }

        public void onDestroy() {
        }

        public void onStart() {
        }

        public void onStop() {
        }
    }

    public enum b {
        a,
        b
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        Uri data;
        super/*androidx.fragment.app.q*/.onActivityResult(i, i2, intent);
        if (i != 1000 || i2 != -1 || intent == null || (data = intent.getData()) == null) {
            return;
        }
        k s = com.bumptech.glide.c.a(this).e.c(this).p(data).c().s(KolmogorovSmirnovTest.SMALL_SAMPLE_PRODUCT, KolmogorovSmirnovTest.SMALL_SAMPLE_PRODUCT);
        s.L(new a(), (f) null, s, e.a);
    }

    public void onBackPressed() {
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        View inflate = getLayoutInflater().inflate(2131492902, (ViewGroup) null, false);
        int i = 2131296392;
        AppBarLayout c = l.c(inflate, 2131296392);
        if (c != null) {
            i = 2131296430;
            Button button = (Button) l.c(inflate, 2131296430);
            if (button != null) {
                i = 2131296503;
                LinearLayout linearLayout = (LinearLayout) l.c(inflate, 2131296503);
                if (linearLayout != null) {
                    i = 2131296571;
                    EditText editText = (EditText) l.c(inflate, 2131296571);
                    if (editText != null) {
                        i = 2131296693;
                        View c2 = l.c(inflate, 2131296693);
                        if (c2 != null) {
                            int i2 = 2131296652;
                            ImageView imageView = (ImageView) l.c(c2, 2131296652);
                            if (imageView != null) {
                                ImageView imageView2 = (ImageView) l.c(c2, 2131296664);
                                if (imageView2 != null) {
                                    ImageView imageView3 = (ImageView) l.c(c2, 2131296665);
                                    if (imageView3 != null) {
                                        l2.g gVar = new l2.g((FrameLayout) c2, imageView, imageView2, imageView3);
                                        RecyclerView c3 = l.c(inflate, 2131296878);
                                        if (c3 != null) {
                                            Toolbar c4 = l.c(inflate, 2131297016);
                                            if (c4 != null) {
                                                TextView textView = (TextView) l.c(inflate, 2131297080);
                                                if (textView != null) {
                                                    LinearLayout linearLayout2 = (LinearLayout) inflate;
                                                    this.B = new c(linearLayout2, c, button, linearLayout, editText, gVar, c3, c4, textView);
                                                    setContentView(linearLayout2);
                                                    b valueOf = b.valueOf(getIntent().getStringExtra(E));
                                                    this.C = valueOf;
                                                    if (valueOf == b.a) {
                                                        ((Toolbar) this.B.h).setVisibility(4);
                                                        ((TextView) this.B.i).setVisibility(0);
                                                    } else {
                                                        ((TextView) this.B.i).setVisibility(8);
                                                        w((Toolbar) this.B.h);
                                                    }
                                                    x5.c g = a6.d.g(getApplicationContext());
                                                    ud.a.a(this, (ImageView) ((l2.g) this.B.f).d);
                                                    ((EditText) this.B.e).setText(g.c);
                                                    ((RecyclerView) this.B.g).setLayoutManager(new GridLayoutManager(this, 4));
                                                    ((RecyclerView) this.B.g).setAdapter(new jd.b(this));
                                                    ((ImageView) ((l2.g) this.B.f).e).setOnClickListener(new i(this, 0));
                                                    ((Button) this.B.c).setOnClickListener(new i(this, 1));
                                                    return;
                                                }
                                                i = 2131297080;
                                            } else {
                                                i = 2131297016;
                                            }
                                        } else {
                                            i = 2131296878;
                                        }
                                    } else {
                                        i2 = 2131296665;
                                    }
                                } else {
                                    i2 = 2131296664;
                                }
                            }
                            throw new NullPointerException(h.a(new byte[]{-12, -22, -54, -16, -48, -19, -34, -93, -53, -26, -56, -10, -48, -15, -36, -25, -103, -11, -48, -26, -50, -93, -50, -22, -51, -21, -103, -54, -3, -71, -103}, new byte[]{-71, -125}).concat(c2.getResources().getResourceName(i2)));
                        }
                    }
                }
            }
        }
        throw new NullPointerException(h.a(new byte[]{17, 22, 47, 12, 53, 17, 59, 95, 46, 26, 45, 10, 53, 13, 57, 27, 124, 9, 53, 26, 43, 95, 43, 22, 40, 23, 124, 54, 24, 69, 124}, new byte[]{92, Byte.MAX_VALUE}).concat(inflate.getResources().getResourceName(i)));
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() != 16908332) {
            return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
        }
        finish();
        return true;
    }

    public void x(Drawable drawable) {
        this.D = drawable;
        com.bumptech.glide.c.e(this).o(drawable).d().M((ImageView) ((l2.g) this.B.f).d);
    }
}