导航菜单

页面标题

页面副标题

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

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

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


package net.shareany.app.activity.transfer;

import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
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.LinearLayout;
import android.widget.Toast;
import androidx.appcompat.app.b;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.genonbeta.android.database.SQLQuery;
import g3.i;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import jd.d;
import m5.h;
import n5.l;
import net.shareany.app.activity.ContentSharingActivity;
import org.greenrobot.eventbus.ThreadMode;
import x5.g;
import x5.i;

public class TransferProgressActivity extends ed.b {
    public ContentSharingActivity.e B;
    public final List<d.e> C = new ArrayList();
    public jd.d D;
    public long E;
    public long F;
    public i G;
    public static final String I = h.a(new byte[]{77, 10, 92, 0, 73, 38, 90, 19, 70, 1, 78, 23, 90, 53, 90, 29, 93, 2, 97, 22}, new byte[]{40, 114});
    public static final String H = "TransferProgressActivity";

    public class a implements DialogInterface.OnClickListener {
        public a(TransferProgressActivity transferProgressActivity) {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            f.d.d(h.a(new byte[]{-25, -47, -14, -51, -32, -59, -10, -47, -52, -45, -31, -52, -12, -47, -10, -48, -32, -4, -11, -54, -3, -54, -32, -53, -52, -64, -14, -51, -16, -58, -1}, new byte[]{-109, -93}));
            dialogInterface.dismiss();
        }
    }

    public class b implements DialogInterface.OnClickListener {
        public b() {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            f.d.d(h.a(new byte[]{-75, 7, -96, 27, -78, 19, -92, 7, -98, 5, -77, 26, -90, 7, -92, 6, -78, 42, -89, 28, -81, 28, -78, 29, -98, 16, -71, 28, -75}, new byte[]{-63, 117}));
            ge.b.b().f(new ld.c(true));
            l.b(TransferProgressActivity.this, new s0.b(this));
        }
    }

    public class c implements sb.c<x5.i> {
        public c() {
        }

        public void a(Object obj) {
            Uri parse;
            x5.i iVar = (x5.i) obj;
            for (int i = 0; i < TransferProgressActivity.this.C.size(); i++) {
                d.e eVar = TransferProgressActivity.this.C.get(i);
                if (eVar instanceof d.c) {
                    d.c cVar = (d.c) eVar;
                    if (cVar.b.f == iVar.f) {
                        cVar.b = iVar;
                        String str = TransferProgressActivity.H;
                        h.a(new byte[]{-103, -80, -103, -24, -75, -70, Byte.MIN_VALUE, -90, -110, -82, -124, -70, -82, -86, -117, -83, -126, -68, -76, -72, -123, -87, -107, -83, -123, -115, -105, -83, -113, -68, -63}, new byte[]{-31, -56});
                        h.a(new byte[]{82, 88, 24, 20, 31, 31, 94}, new byte[]{126, 120});
                        iVar.l.name();
                        h.a(new byte[]{-1, 24, -79, 65, -89, 93, -96, 24}, new byte[]{-45, 56});
                        i.a aVar = iVar.l;
                        long j = aVar.a;
                        if (aVar.name().equals(i.a.c.name())) {
                            ((Toolbar) TransferProgressActivity.this.G.h).setTitle(2131820633);
                        }
                        if (iVar.l.name().equals(i.a.e.name())) {
                            ((Toolbar) TransferProgressActivity.this.G.h).setTitle(2131820632);
                        }
                        String name = iVar.l.name();
                        i.a aVar2 = i.a.h;
                        if (name.equals(aVar2.name())) {
                            ?? r3 = TransferProgressActivity.this;
                            r3.E += iVar.i;
                            r3.F += iVar.m;
                            if (cVar.b.c.split(File.separator).length > 0) {
                                ra.a aVar3 = null;
                                try {
                                } catch (Exception e) {
                                    e.printStackTrace();
                                }
                                if (i.b.b.equals(cVar.b.k)) {
                                    parse = Uri.parse(cVar.b.b);
                                } else {
                                    if (i.b.a.equals(cVar.b.k) && aVar2.name().equals(cVar.b.l.name())) {
                                        parse = Uri.parse(cVar.b.b);
                                    }
                                    if (aVar3 != null && aVar3.g()) {
                                        cVar.c = aVar3;
                                        cVar.d = true;
                                    }
                                }
                                aVar3 = va.a.a((Context) r3, parse);
                                if (aVar3 != null) {
                                    cVar.c = aVar3;
                                    cVar.d = true;
                                }
                            } else {
                                cVar.d = false;
                            }
                            ((Toolbar) TransferProgressActivity.this.G.h).setTitle(2131820631);
                        }
                        TransferProgressActivity.this.D.e(i);
                        return;
                    }
                }
            }
        }
    }

    public class d implements sb.d<Boolean, x5.i> {
        public final u5.b a;

        public d(u5.b bVar) {
            this.a = bVar;
        }

        public Object apply(Object obj) {
            return (x5.i) a6.d.c(TransferProgressActivity.this).castQuery(new SQLQuery.Select(h.a(new byte[]{-33, -10, -54, -22, -40, -30, -50, -10}, new byte[]{-85, -124}), new String[0]).setWhere(h.a(new byte[]{80, -21, 4, -80}, new byte[]{57, -113}), new String[]{String.valueOf(this.a.a)}), x5.i.class).get(0);
        }
    }

    public class e implements sb.c<List<d.e>> {
        public e() {
        }

        public void a(Object obj) {
            List list = (List) obj;
            TransferProgressActivity.this.C.addAll(list);
            TransferProgressActivity transferProgressActivity = TransferProgressActivity.this;
            ((RecyclerView.e) transferProgressActivity.D).a.d(transferProgressActivity.C.size() - list.size(), list.size());
            ((RecyclerView) TransferProgressActivity.this.G.e).y0(r4.C.size() - 1);
        }
    }

    public class f implements sb.d<Boolean, List<d.e>> {
        public final long a;

        public f(long j) {
            this.a = j;
        }

        public Object apply(Object obj) {
            ArrayList arrayList = new ArrayList();
            List castQuery = a6.d.c(TransferProgressActivity.this).castQuery(new SQLQuery.Select(h.a(new byte[]{73, 14, 92, 18, 78, 26, 88, 14, 122, 14, 82, 9, 77}, new byte[]{61, 124}), new String[0]).setWhere(h.a(new byte[]{-33, -59, -117, -98}, new byte[]{-74, -95}), new String[]{String.valueOf(this.a)}), g.class);
            List<x5.i> castQuery2 = a6.d.c(TransferProgressActivity.this).castQuery(new SQLQuery.Select(h.a(new byte[]{19, 104, 6, 116, 20, 124, 2, 104}, new byte[]{103, 26}), new String[0]).setWhere(h.a(new byte[]{75, 126, 67, 121, 92, 69, 72, 49, 19}, new byte[]{44, 12}), new String[]{String.valueOf(this.a)}), x5.i.class);
            d.C0007d c0007d = new d.C0007d();
            for (x5.i iVar : castQuery2) {
                c0007d.a = iVar.k;
                c0007d.b++;
                c0007d.c += iVar.i;
            }
            arrayList.add(c0007d);
            int i = 0;
            while (i < castQuery2.size()) {
                arrayList.add(new d.c(i == castQuery2.size() - 1, (g) castQuery.get(0), (x5.i) castQuery2.get(i)));
                i++;
            }
            return arrayList;
        }
    }

    public void onBackPressed() {
        f.d.d(h.a(new byte[]{-5, -90, -18, -70, -4, -78, -22, -90, -48, -92, -3, -69, -24, -90, -22, -89, -4, -117, -19, -75, -20, -65, -48, -92, -3, -79, -4, -89, -22, -80}, new byte[]{-113, -44}));
        x();
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        View inflate = getLayoutInflater().inflate(2131492907, (ViewGroup) null, false);
        int i = 2131296429;
        Button button = (Button) androidx.activity.l.c(inflate, 2131296429);
        if (button != null) {
            i = 2131296436;
            Button button2 = (Button) androidx.activity.l.c(inflate, 2131296436);
            if (button2 != null) {
                i = 2131296879;
                RecyclerView c2 = androidx.activity.l.c(inflate, 2131296879);
                if (c2 != null) {
                    i = 2131297016;
                    Toolbar c3 = androidx.activity.l.c(inflate, 2131297016);
                    if (c3 != null) {
                        g3.i iVar = new g3.i((LinearLayout) inflate, button, button2, c2, c3);
                        this.G = iVar;
                        setContentView(iVar.a());
                        getWindow().addFlags(128);
                        w((Toolbar) this.G.h);
                        ((RecyclerView) this.G.e).setLayoutManager(new LinearLayoutManager(1, false));
                        jd.d dVar = new jd.d(this.C);
                        this.D = dVar;
                        ((RecyclerView) this.G.e).setAdapter(dVar);
                        this.B = ContentSharingActivity.e.valueOf(getIntent().getStringExtra(h.a(new byte[]{-118, 46, -101, 36, -114, 5, -121, 55, -99, 51, -65, 58, -114, 34, -119, 57, -99, 59}, new byte[]{-17, 86})));
                        long longExtra = getIntent().getLongExtra(I, -1L);
                        if (longExtra != -1) {
                            y(longExtra);
                        }
                        ((Button) this.G.c).setOnClickListener(new id.a(this, 0));
                        ((Button) this.G.d).setOnClickListener(new id.a(this, 1));
                        l.a(this);
                        return;
                    }
                }
            }
        }
        throw new NullPointerException(h.a(new byte[]{-118, 29, -76, 7, -82, 26, -96, 84, -75, 17, -74, 1, -82, 6, -94, 16, -25, 2, -82, 17, -80, 84, -80, 29, -77, 28, -25, 61, -125, 78, -25}, new byte[]{-57, 116}).concat(inflate.getResources().getResourceName(i)));
    }

    @Override
    public void onDestroy() {
        getWindow().clearFlags(128);
        ge.b.b().l(this);
        super.onDestroy();
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent(u5.a aVar) {
        h.a(new byte[]{-45, -94, -45, -6, -1, -88, -54, -76, -40, -68, -50, -88, -20, -88, -60, -81, -37, -103, -39, -65, -54, -82, -50, -66, -18, -84, -50, -76, -33, -6}, new byte[]{-85, -38});
        long j = aVar.b;
        h.a(new byte[]{-98, 89}, new byte[]{-78, 121});
        aVar.a.toString();
        if (this.B == ContentSharingActivity.e.a && aVar.a == i.b.b) {
            Toast.makeText((Context) this, 2131820646, 1).show();
        }
        y(aVar.b);
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent2(u5.b bVar) {
        pb.b.d(Boolean.TRUE).i(dc.a.b).f(ob.b.a()).e(new d(bVar)).g(new c());
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent3(ld.c cVar) {
        h.a(new byte[]{118, -61, 118, -101, 97, -43, 67, -34, 125, -56, 111, -36, 107, -2, 120, -34, 96, -49, 61, -101, 90, -55, 111, -43, 125, -35, 107, -55, 93, -34, 125, -56, 103, -44, 96, -2, 96, -33, 75, -51, 107, -43, 122}, new byte[]{14, -69});
        if (cVar.a) {
            return;
        }
        Intent intent = new Intent((Context) this, (Class<?>) TransferCompletedActivity.class);
        intent.putExtra(h.a(new byte[]{-103, -85, -120, -95, -99, -116, -104, -68, -110, -74, -81, -70, -122, -74}, new byte[]{-4, -45}), this.E);
        intent.putExtra(h.a(new byte[]{56, -105, 41, -99, 60, -80, 41, -122, 48, -118, 24, -125, 60, -97, 46, -118, 57}, new byte[]{93, -17}), this.F);
        startActivity(intent);
        finish();
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() != 16908332) {
            return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
        }
        f.d.d(h.a(new byte[]{-36, 29, -55, 1, -37, 9, -51, 29, -9, 31, -38, 0, -49, 29, -51, 28, -37, 48, -58, 14, -34, 6, -49, 14, -36, 6, -57, 1}, new byte[]{-88, 111}));
        x();
        return true;
    }

    public void x() {
        boolean z;
        f.d.d(h.a(new byte[]{73, 9, 92, 21, 78, 29, 88, 9, 98, 11, 79, 20, 90, 9, 88, 8, 78, 36, 91, 18, 83, 18, 78, 19}, new byte[]{61, 123}));
        b.a aVar = new b.a(this);
        aVar.f(2131820658);
        Iterator<d.e> it = this.D.d.iterator();
        while (true) {
            if (!it.hasNext()) {
                z = false;
                break;
            }
            d.e next = it.next();
            if ((next instanceof d.c) && !((d.c) next).b.l.equals(i.a.h)) {
                z = true;
                break;
            }
        }
        aVar.b(z ? 2131820657 : 2131820656);
        aVar.e(2131820659, new b());
        aVar.c(2131820655, new a(this));
        aVar.h();
    }

    public final void y(long j) {
        pb.b.d(Boolean.TRUE).i(dc.a.b).f(ob.b.a()).e(new f(j)).g(new e());
    }
}