导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - XoneNotifyActivity.java 源代码

正在查看: Minits v4.9.3.32 应用的 XoneNotifyActivity.java JAVA 源代码文件

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


package com.xone.android.framework.notify;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import c8.C0534l;
import com.xone.android.framework.AbstractC0564f;
import com.xone.android.framework.AbstractC0565g;
import com.xone.android.framework.activities.EditViewHyper;
import com.xone.android.framework.activities.MainListCollectionActivity;
import com.xone.android.framework.xoneApp;
import com.xone.android.utils.Utils;
import com.xone.interfaces.IXoneApp;
import f8.C0671f;
import f8.C0672g;
import fb.t;
import java.util.ArrayList;
import java.util.List;

public final class XoneNotifyActivity extends Activity implements View.OnClickListener, AdapterView.OnItemClickListener {
    public List l;

    public final void a(List list) {
        if (this.l == null) {
            this.l = new ArrayList();
        }
        xoneApp Z0 = xoneApp.Z0();
        IXoneApp c1 = xoneApp.c1();
        if (c1 == null) {
            return;
        }
        for (int i = 0; i < list.size(); i++) {
            C0671f b = b(Z0.z1(c1.getUser()), (String) list.get(i));
            if (b != null) {
                this.l.add(b);
            }
        }
    }

    public final C0671f b(C0672g c0672g, String str) {
        List b;
        if (c0672g == null || (b = c0672g.b()) == null) {
            return null;
        }
        for (int i = 0; i < b.size(); i++) {
            C0672g c0672g2 = (C0672g) b.get(i);
            if (c0672g2 != null) {
                if (t.E(str, c0672g2.c().c())) {
                    return c0672g2.c();
                }
                C0671f b2 = b(c0672g2, str);
                if (b2 != null) {
                    return b2;
                }
            }
        }
        return null;
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == AbstractC0564f.l1) {
            finish();
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        requestWindowFeature(1);
        super.onCreate(bundle);
        try {
            setContentView(AbstractC0565g.y);
            getWindow().setFlags(4, 4);
            getWindow().getAttributes().dimAmount = 0.5f;
            getWindow().setFlags(2, 2);
            ArrayList<String> stringArrayListExtra = getIntent().getStringArrayListExtra("notifycollections");
            if (stringArrayListExtra == null) {
                finish();
                return;
            }
            if (stringArrayListExtra.isEmpty()) {
                finish();
                return;
            }
            a(stringArrayListExtra);
            List list = this.l;
            if (list == null) {
                finish();
                return;
            }
            if (list.isEmpty()) {
                finish();
                return;
            }
            Button button = (Button) findViewById(AbstractC0564f.l1);
            if (button != null) {
                button.setOnClickListener(this);
            }
            FrameLayout frameLayout = (FrameLayout) findViewById(AbstractC0564f.q0);
            if (frameLayout != null) {
                ViewGroup.LayoutParams layoutParams = frameLayout.getLayoutParams();
                int size = this.l.size();
                if (size > 3) {
                    size = 3;
                }
                layoutParams.height = (int) (Utils.y4(this, 72.0f) * size);
                frameLayout.setLayoutParams(layoutParams);
            }
            ListView listView = (ListView) findViewById(AbstractC0564f.m1);
            if (listView != null) {
                listView.setAdapter((ListAdapter) new C0534l(this, stringArrayListExtra, this.l));
                listView.setOnItemClickListener(this);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onItemClick(AdapterView adapterView, View view, int i, long j) {
        C0671f c0671f = (C0671f) this.l.get(i);
        if (c0671f == null) {
            return;
        }
        int i2 = c0671f.i();
        int h = c0671f.h();
        String c = c0671f.c();
        Intent intent = new Intent("android.intent.action.MAIN");
        if (i2 == 0) {
            intent.setClass(this, MainListCollectionActivity.class);
        } else {
            intent.setClass(this, EditViewHyper.class);
            intent.putExtra("newobject", true);
        }
        intent.putExtra("collname", c);
        intent.putExtra("mode", i2);
        intent.putExtra("mask", h);
        intent.setFlags(268435456);
        Utils.Y2(this);
        startActivity(intent);
        finish();
    }
}