导航菜单

页面标题

页面副标题

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

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

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


package net.shareany.app.activity.invite;

import a.f;
import a6.m;
import a6.s;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.material.snackbar.Snackbar;
import ed.a;
import h9.j;
import h9.t;
import java.io.IOException;
import java.util.ArrayList;
import m5.h;
import n5.l;
import nd.c;
import s5.b;
import t0.d;

public class InviteHotspotActivity extends a {
    public static final int K = 0;
    public c I;
    public b J;

    public final void C(je.c cVar, String str, String str2) {
        ArrayList arrayList = (ArrayList) m.d(true, q5.a.a);
        String c = arrayList.size() != 0 ? s.c(this, ((a6.a) arrayList.get(0)).b) : null;
        if (c == null || cVar == null || !this.I.j()) {
            ((TextView) this.J.c).setText((CharSequence) null);
            ((ImageView) this.J.d).setImageResource(2131165532);
            d.a((ImageView) this.J.d, this.E);
        } else {
            TextView textView = (TextView) this.J.c;
            StringBuilder a = f.a(c);
            a.append(h.a(new byte[]{120, 42, 78, 50, 110, 35, 92, 57, 88, 101, 92, 59, 86}, new byte[]{61, 75}));
            textView.setText(a.toString());
            try {
                p9.b b = new j().b(c, h9.a.p, 400, 400);
                int i = b.a;
                int i2 = b.b;
                int[] iArr = new int[i * i2];
                for (int i3 = 0; i3 < i2; i3++) {
                    int i4 = i3 * i;
                    for (int i5 = 0; i5 < i; i5++) {
                        iArr[i4 + i5] = b.b(i5, i3) ? -16777216 : -1;
                    }
                }
                Bitmap createBitmap = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
                createBitmap.setPixels(iArr, 0, i, 0, 0, i, i2);
                com.bumptech.glide.c.e(this).n(createBitmap).M((ImageView) this.J.d);
            } catch (t e) {
                e.printStackTrace();
            }
            d.a((ImageView) this.J.d, (ColorStateList) null);
        }
        ((TextView) this.J.e).setText(str);
        ((TextView) this.J.e).setVisibility(str == null ? 8 : 0);
        ((TextView) this.J.f).setText(str2);
        ((TextView) this.J.f).setVisibility(str2 == null ? 8 : 0);
    }

    public Snackbar d(int i, Object... objArr) {
        return Snackbar.j((LinearLayout) this.J.b, getString(i, objArr), 0);
    }

    public void onBackPressed() {
        l.b(this, new s0.b(this));
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        CoordinatorLayout inflate = getLayoutInflater().inflate(2131492900, (ViewGroup) null, false);
        int i = 2131296666;
        ImageView imageView = (ImageView) androidx.activity.l.c(inflate, 2131296666);
        if (imageView != null) {
            i = 2131296687;
            LinearLayout linearLayout = (LinearLayout) androidx.activity.l.c(inflate, 2131296687);
            if (linearLayout != null) {
                i = 2131297041;
                TextView textView = (TextView) androidx.activity.l.c(inflate, 2131297041);
                if (textView != null) {
                    i = 2131297063;
                    TextView textView2 = (TextView) androidx.activity.l.c(inflate, 2131297063);
                    if (textView2 != null) {
                        i = 2131297067;
                        TextView textView3 = (TextView) androidx.activity.l.c(inflate, 2131297067);
                        if (textView3 != null) {
                            CoordinatorLayout coordinatorLayout = inflate;
                            this.J = new b(coordinatorLayout, imageView, linearLayout, textView, textView2, textView3);
                            setContentView(coordinatorLayout);
                            if (u() != null) {
                                u().m(true);
                                u().r(2131820586);
                            }
                            this.I = new nd.a(this, 8080);
                            ((TextView) this.J.c).setOnClickListener(new fd.c(this, 0));
                            ((TextView) this.J.f).setOnClickListener(new fd.c(this, 1));
                            l.a(this);
                            return;
                        }
                    }
                }
            }
        }
        throw new NullPointerException(h.a(new byte[]{70, -14, 120, -24, 98, -11, 108, -69, 121, -2, 122, -18, 98, -23, 110, -1, 43, -19, 98, -2, 124, -69, 124, -14, Byte.MAX_VALUE, -13, 43, -46, 79, -95, 43}, new byte[]{11, -101}).concat(inflate.getResources().getResourceName(i)));
    }

    @Override
    public void onDestroy() {
        if (this.I.j()) {
            this.I.q();
        }
        super.onDestroy();
    }

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

    @Override
    public void y() {
        C(null, null, null);
    }

    @Override
    public void z(String str, String str2, int i) {
        h.a(new byte[]{-91, 22, -91, 78, -82, 26, -68, 28, -87, 78, -75, 26, -87, 30, -3, 29, -72, 28, -85, 11, -81}, new byte[]{-35, 110});
        if (this.I.j()) {
            this.I.q();
        }
        try {
            this.I.p(5000, true);
        } catch (IOException e) {
            e.printStackTrace();
        }
        try {
            je.c cVar = new je.c();
            cVar.A(h.a(new byte[]{-12, -44, -44, -62, -9, -58}, new byte[]{-102, -93}), str);
            cVar.A(h.a(new byte[]{-121, -86, -71, -86, -115}, new byte[]{-23, -35}), str2);
            cVar.A(h.a(new byte[]{-95, 48, -124, 33, -74, 9, -88, 41, -69}, new byte[]{-49, 68}), Integer.valueOf(i));
            C(cVar, str, str2);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }
}