导航菜单

页面标题

页面副标题

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

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

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


package net.shareany.app.activity.mobile;

import a6.d;
import a6.g;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.text.style.ForegroundColorSpan;
import android.text.style.RelativeSizeSpan;
import android.text.style.UnderlineSpan;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.snackbar.Snackbar;
import h9.j;
import je.c;
import m5.h;
import n5.l;
import n5.o;
import net.shareany.app.activity.ContentSharingActivity;
import net.shareany.app.activity.invite.InviteHomeActivity;
import net.shareany.app.activity.transfer.TransferProgressActivity;
import net.shareany.app.service.TransferService;
import org.greenrobot.eventbus.ThreadMode;
import x5.c;
import x5.i;

public class DeviceReceiverActivity extends ed.a {
    public static final int N = 0;
    public String I;
    public boolean J;
    public o K;
    public s5.a L;
    public boolean M = true;

    public class a extends ClickableSpan {
        public a() {
        }

        @Override
        public void onClick(View view) {
            DeviceReceiverActivity.this.startActivityForResult(new Intent((Context) DeviceReceiverActivity.this, (Class<?>) InviteHomeActivity.class), 10001);
        }
    }

    public class b implements g.b {
        public b() {
        }

        public void a(pd.a aVar) {
            try {
                aVar.d(DeviceReceiverActivity.this.I);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    @SuppressLint({"SetTextI18n"})
    public final void C(c cVar, String str, String str2) {
        try {
            if (!d.n() || !d.m() || !d.o(this)) {
                this.L.i.setVisibility(0);
                this.L.k.setVisibility(4);
                return;
            }
            this.L.i.setVisibility(4);
            this.L.k.setVisibility(0);
            if (cVar != null) {
                p9.b b2 = new j().b(cVar.toString(), h9.a.p, 400, 400);
                int i = b2.a;
                int i2 = b2.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] = b2.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(this.L.g);
                t0.d.a(this.L.g, (ColorStateList) null);
            } else {
                this.L.g.setImageResource(2131165532);
                t0.d.a(this.L.g, this.E);
            }
            this.L.p.setText(str);
            int i6 = 8;
            this.L.p.setVisibility(str == null ? 8 : 0);
            this.L.q.setText(str2);
            TextView textView = this.L.q;
            if (str2 != null) {
                i6 = 0;
            }
            textView.setVisibility(i6);
            if (cVar != null && !TextUtils.isEmpty(str)) {
                this.L.d.setVisibility(0);
                this.L.c.setVisibility(4);
                this.L.j.setVisibility(4);
                return;
            }
            this.L.d.setVisibility(4);
            this.L.c.setVisibility(0);
            this.L.j.setVisibility(0);
            this.L.c.setText(2131820985);
            this.L.c.setBackgroundTintList(ColorStateList.valueOf(getResources().getColor(2131034311)));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public Snackbar d(int i, Object... objArr) {
        return Snackbar.j(this.L.h, getString(i, objArr), 0);
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        super/*androidx.fragment.app.q*/.onActivityResult(i, i2, intent);
        h.a(new byte[]{85, 34, 85, 122, 66, 52, 108, 57, 89, 51, 91, 51, 89, 35, Byte.MAX_VALUE, 63, 94, 47, 65, 46, 5, 115, 13, 40, 72, 43, 88, 63, 94, 46, 110, 53, 73, 63, 13}, new byte[]{45, 90});
        h.a(new byte[]{-115, 4, -45, 65, -46, 81, -51, 80, -30, 75, -59, 65, -127}, new byte[]{-95, 36});
        if (i == 10001 && i2 == -1) {
            h.a(new byte[]{-21, -87, -21, -15, -38, -65, -27, -72, -25, -76, -37, -66, -25, -94, -29, -66, -25, -112, -16, -91, -6, -89, -6, -91, -22, -15, -5, -80, -9, -15, -31, -76, -1, -76, -14, -94, -10, -15, -5, -66, -25, -94, -29, -66, -25, -1, -77, -126, -4, -15, -28, -76, -77, -94, -5, -66, -26, -67, -9, -15, -31, -76, -32, -91, -14, -93, -25, -15, -5, -66, -25, -94, -29, -66, -25}, new byte[]{-109, -47});
            this.F = true;
        }
    }

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

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        ConstraintLayout inflate = getLayoutInflater().inflate(2131492896, (ViewGroup) null, false);
        int i = 2131296381;
        FrameLayout frameLayout = (FrameLayout) androidx.activity.l.c(inflate, 2131296381);
        if (frameLayout != null) {
            i = 2131296392;
            AppBarLayout c = androidx.activity.l.c(inflate, 2131296392);
            if (c != null) {
                i = 2131296428;
                Button button = (Button) androidx.activity.l.c(inflate, 2131296428);
                if (button != null) {
                    i = 2131296438;
                    Button button2 = (Button) androidx.activity.l.c(inflate, 2131296438);
                    if (button2 != null) {
                        i = 2131296588;
                        FrameLayout frameLayout2 = (FrameLayout) androidx.activity.l.c(inflate, 2131296588);
                        if (frameLayout2 != null) {
                            i = 2131296654;
                            ImageView imageView = (ImageView) androidx.activity.l.c(inflate, 2131296654);
                            if (imageView != null) {
                                i = 2131296655;
                                ImageView imageView2 = (ImageView) androidx.activity.l.c(inflate, 2131296655);
                                if (imageView2 != null) {
                                    ConstraintLayout constraintLayout = inflate;
                                    LinearLayout linearLayout = (LinearLayout) androidx.activity.l.c(inflate, 2131296713);
                                    if (linearLayout != null) {
                                        ProgressBar progressBar = (ProgressBar) androidx.activity.l.c(inflate, 2131296832);
                                        if (progressBar != null) {
                                            ScrollView scrollView = (ScrollView) androidx.activity.l.c(inflate, 2131296967);
                                            if (scrollView != null) {
                                                Toolbar c2 = androidx.activity.l.c(inflate, 2131297016);
                                                if (c2 != null) {
                                                    TextView textView = (TextView) androidx.activity.l.c(inflate, 2131297046);
                                                    if (textView != null) {
                                                        TextView textView2 = (TextView) androidx.activity.l.c(inflate, 2131297049);
                                                        if (textView2 != null) {
                                                            TextView textView3 = (TextView) androidx.activity.l.c(inflate, 2131297053);
                                                            if (textView3 != null) {
                                                                TextView textView4 = (TextView) androidx.activity.l.c(inflate, 2131297055);
                                                                if (textView4 != null) {
                                                                    TextView textView5 = (TextView) androidx.activity.l.c(inflate, 2131297056);
                                                                    if (textView5 != null) {
                                                                        TextView textView6 = (TextView) androidx.activity.l.c(inflate, 2131297065);
                                                                        if (textView6 != null) {
                                                                            this.L = new s5.a(constraintLayout, frameLayout, c, button, button2, frameLayout2, imageView, imageView2, constraintLayout, linearLayout, progressBar, scrollView, c2, textView, textView2, textView3, textView4, textView5, textView6);
                                                                            setContentView(constraintLayout);
                                                                            getWindow().addFlags(128);
                                                                            w(this.L.l);
                                                                            ge.b.b().j(this);
                                                                            String string = getString(2131820599, new Object[]{getString(2131821001)});
                                                                            String string2 = getString(2131820598, new Object[]{string});
                                                                            SpannableString spannableString = new SpannableString(string2);
                                                                            int indexOf = string2.indexOf(string);
                                                                            spannableString.setSpan(new RelativeSizeSpan(1.1f), indexOf, string.length() + indexOf, 33);
                                                                            spannableString.setSpan(new UnderlineSpan(), indexOf, string.length() + indexOf, 33);
                                                                            spannableString.setSpan(new a(), indexOf, string.length() + indexOf, 33);
                                                                            spannableString.setSpan(new ForegroundColorSpan(f0.a.b(this, 2131034185)), indexOf, string.length() + indexOf, 33);
                                                                            this.L.o.setText(spannableString);
                                                                            this.L.o.setMovementMethod(LinkMovementMethod.getInstance());
                                                                            x5.c g = d.g(getApplicationContext());
                                                                            ud.a.a(this, this.L.f);
                                                                            this.L.m.setText(g.c);
                                                                            this.K = new o(this, h.a(new byte[]{94, -71, 16, -71, 77, -88, 16, -88, 72, -70, 16, -22, 15, -17, 8, -19, 15, -18, 14, -22, 14, -21, 15, -21, 12, -21, 9, -9, 11, -24, 10, -24, 4, -19, 8, -32, 9, -32}, new byte[]{61, -40}), this.L.b, 2131493043);
                                                                            l.a(this);
                                                                            this.L.d.setOnClickListener(new gd.a(this, 0));
                                                                            this.L.c.setOnClickListener(new gd.a(this, 1));
                                                                            this.L.n.setOnClickListener(new gd.a(this, 2));
                                                                            return;
                                                                        }
                                                                        i = 2131297065;
                                                                    } else {
                                                                        i = 2131297056;
                                                                    }
                                                                } else {
                                                                    i = 2131297055;
                                                                }
                                                            } else {
                                                                i = 2131297053;
                                                            }
                                                        } else {
                                                            i = 2131297049;
                                                        }
                                                    } else {
                                                        i = 2131297046;
                                                    }
                                                } else {
                                                    i = 2131297016;
                                                }
                                            } else {
                                                i = 2131296967;
                                            }
                                        } else {
                                            i = 2131296832;
                                        }
                                    } else {
                                        i = 2131296713;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        throw new NullPointerException(h.a(new byte[]{-35, 18, -29, 8, -7, 21, -9, 91, -30, 30, -31, 14, -7, 9, -11, 31, -80, 13, -7, 30, -25, 91, -25, 18, -28, 19, -80, 50, -44, 65, -80}, new byte[]{-112, 123}).concat(inflate.getResources().getResourceName(i)));
    }

    @Override
    public void onDestroy() {
        ge.b.b().l(this);
        stopService(new Intent((Context) this, (Class<?>) TransferService.class));
        getWindow().clearFlags(128);
        super.onDestroy();
        this.K.a();
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent(ld.d dVar) {
        f.d.d(h.a(new byte[]{101, 36, 119, 40, 98, 36, 94, 51, 100, 34, 100, 40, 119, 36, 115, 30, 117, 51, 96, 47, 114, 39, 100, 51, 94, 50, 100, 50, 114, 40, 110, 47, 94, 50, 117, 32, 115, 53}, new byte[]{1, 65}));
        h.a(new byte[]{-83, 93, -83, 5, -70, 75, -104, 64, -90, 86, -76, 66, -80, 96, -93, 64, -69, 81, -11, 113, -89, 68, -69, 86, -77, 64, -89, 118, -80, 86, -90, 76, -70, 75, -122, 81, -76, 87, -95, 96, -93, 64, -69, 81, -11, 65, -80, 83, -68, 70, -80, 108, -79, 5}, new byte[]{-43, 37});
        String str = dVar.a.d;
        if (!this.J || isFinishing()) {
            h.a(new byte[]{41, -102, 41, -62, 52, -112, 35, -115, 35, -62, 57, -125, 63, -122, 61, -121, 113, -74, 35, -125, 63, -111, 55, -121, 35, -79, 52, -111, 34, -117, 62, -116, 2, -106, 48, -112, 37, -89, 39, -121, 63, -106, 125, -62, 36, -111, 52, -112, 113, -108, 56, -111, 56, Byte.MIN_VALUE, 61, -121, 113, -117, 34, -62}, new byte[]{81, -30});
            return;
        }
        TransferService.r = dVar.a;
        c.a aVar = dVar.b;
        TransferService.s = aVar;
        this.I = aVar.b;
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent1(u5.a aVar) {
        f.d.d(h.a(new byte[]{50, 72, 32, 68, 53, 72, 9, 95, 51, 78, 51, 68, 32, 72, 36, 114, 34, 95, 55, 67, 37, 75, 51, 95, 9, 74, 36, 66, 35, 93, 9, 78, 36, 72, 55, 89, 51, 73}, new byte[]{86, 45}));
        h.a(new byte[]{113, -6, 113, -94, 102, -20, 68, -25, 122, -15, 104, -27, 108, -57, Byte.MAX_VALUE, -25, 103, -10, 56, -94, 93, -16, 104, -20, 122, -28, 108, -16, 78, -16, 102, -9, 121, -63, 123, -25, 104, -10, 108, -26, 76, -12, 108, -20, 125, -94}, new byte[]{9, -126});
        aVar.a.toString();
        h.a(new byte[]{-107, -46}, new byte[]{-71, -14});
        if (aVar.a == i.b.b) {
            startService(new Intent((Context) this, (Class<?>) TransferService.class).putExtra(h.a(new byte[]{61, 112, 44, 122, 57, 92, 42, 105, 54, 123, 62, 109, 42, 79, 42, 103, 45, 120, 17, 108}, new byte[]{88, 8}), aVar.b).setAction(h.a(new byte[]{-23, -69, -25, -6, -19, -79, -28, -69, -28, -74, -17, -96, -21, -6, -34, -90, -17, -74, -26, -79, -39, -68, -27, -96, -92, -75, -23, -96, -29, -69, -28, -6, -40, -111, -37, -127, -49, -121, -34, -117, -34, -122, -53, -102, -39, -110, -49, -122}, new byte[]{-118, -44})));
        }
        if (aVar.a == i.b.a && this.J && !isFinishing()) {
            Intent intent = new Intent((Context) this, (Class<?>) TransferProgressActivity.class);
            intent.putExtra(h.a(new byte[]{111, 22, 126, 28, 107, 61, 98, 15, 120, 11, 90, 2, 107, 26, 108, 1, 120, 3}, new byte[]{10, 110}), ContentSharingActivity.e.b.toString());
            intent.putExtra(h.a(new byte[]{-121, 124, -106, 118, -125, 80, -112, 101, -116, 119, -124, 97, -112, 67, -112, 107, -105, 116, -85, 96}, new byte[]{-30, 4}), aVar.b);
            startActivity(intent);
        }
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.BACKGROUND)
    public void onMessageEvent2(ld.c cVar) {
        f.d.d(h.a(new byte[]{-70, -2, -88, -14, -67, -2, -127, -23, -69, -8, -69, -14, -88, -2, -84, -60, -86, -23, -65, -11, -83, -3, -69, -23, -127, -24, -69, -24, -83, -14, -79, -11, -127, -2, -80, -1}, new byte[]{-34, -101}));
        h.a(new byte[]{-116, -74, -116, -18, -101, -96, -71, -85, -121, -67, -107, -87, -111, -117, -126, -85, -102, -70, -58, -18, -96, -68, -107, -96, -121, -88, -111, -68, -89, -85, -121, -67, -99, -95, -102, -117, -102, -86, -79, -72, -111, -96, Byte.MIN_VALUE}, new byte[]{-12, -50});
        if (cVar.a) {
            g.a((r5.c) null, true, new b());
        }
        finish();
    }

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

    @Override
    public void onPause() {
        this.J = false;
        super.onPause();
        this.K.b();
    }

    @Override
    public void onResume() {
        super.onResume();
        h.a(new byte[]{-95, 69, -95, 29, -74, 83, -117, 88, -86, 72, -76, 88, -15, 20}, new byte[]{-39, 61});
        this.J = true;
        this.K.c();
    }

    @Override
    public void y() {
        stopService(new Intent((Context) this, (Class<?>) TransferService.class));
        this.M = false;
        C(null, null, null);
    }

    @Override
    public void z(String str, String str2, int i) {
        this.M = false;
        startService(new Intent((Context) this, (Class<?>) TransferService.class));
        try {
            je.c cVar = new je.c();
            cVar.A(h.a(new byte[]{-29, 118, -61, 96, -32, 100}, new byte[]{-115, 1}), str);
            cVar.A(h.a(new byte[]{85, -57, 107, -57, 95}, new byte[]{59, -80}), str2);
            cVar.A(h.a(new byte[]{-118, -93, -81, -78, -99, -102, -125, -70, -112}, new byte[]{-28, -41}), Integer.valueOf(i));
            C(cVar, str, str2);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}