Notify v1.3版本的 MD5 值为:895e81227cabff93166e4db568124d5d

以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考


package com.notify.app;

import android.content.Intent;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.notify.app.RequestNetwork;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
public class MainActivity extends AppCompatActivity {
    private RequestNetwork.RequestListener _check_request_listener;
    private RequestNetwork check;
    private ImageView imageview1;
    private LinearLayout linear1;
    private HashMap<String, Object> HEADERS = new HashMap<>();
    private String ServerKey = "";
    private HashMap<String, Object> NOTIFICATION_EXTRA_DATA = new HashMap<>();
    private String extraData = "";
    private HashMap<String, Object> NOTIFICATION_EXTRA_DATA_VALUE = new HashMap<>();
    private String extraDataType = "";
    private HashMap<String, Object> Notification_BODY = new HashMap<>();
    private String ImageUrl = "";
    private HashMap<String, Object> MAIN_BODY = new HashMap<>();
    private Intent in = new Intent();

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.main);
        initialize(bundle);
        initializeLogic();
    }

    private void initialize(Bundle bundle) {
        this.linear1 = (LinearLayout) findViewById(R.id.linear1);
        this.imageview1 = (ImageView) findViewById(R.id.imageview1);
        this.check = new RequestNetwork(this);
        this._check_request_listener = new RequestNetwork.RequestListener() {
            @Override
            public void onResponse(String str, String str2, HashMap<String, Object> hashMap) {
                MainActivity.this.in.setClass(MainActivity.this.getApplicationContext(), ProjectActivity.class);
                MainActivity.this.startActivity(MainActivity.this.in);
                MainActivity.this.finish();
            }

            @Override
            public void onErrorResponse(String str, String str2) {
            }
        };
    }

    private void initializeLogic() {
        this.in.setClass(getApplicationContext(), ProjectActivity.class);
        startActivity(this.in);
        finish();
        this.check.startRequestNetwork("GET", "https://google.com", "a", this._check_request_listener);
        getWindow().getDecorView().setSystemUiVisibility(8192);
        getWindow().setStatusBarColor(-1);
    }

    @Deprecated
    public void showMessage(String str) {
        Toast.makeText(getApplicationContext(), str, 0).show();
    }

    @Deprecated
    public int getLocationX(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[0];
    }

    @Deprecated
    public int getLocationY(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[1];
    }

    @Deprecated
    public int getRandom(int i, int i2) {
        return new Random().nextInt((i2 - i) + 1) + i;
    }

    @Deprecated
    public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) {
        ArrayList<Double> arrayList = new ArrayList<>();
        SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions();
        for (int i = 0; i < checkedItemPositions.size(); i++) {
            if (checkedItemPositions.valueAt(i)) {
                arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i)));
            }
        }
        return arrayList;
    }

    @Deprecated
    public float getDip(int i) {
        return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics());
    }

    @Deprecated
    public int getDisplayWidthPixels() {
        return getResources().getDisplayMetrics().widthPixels;
    }

    @Deprecated
    public int getDisplayHeightPixels() {
        return getResources().getDisplayMetrics().heightPixels;
    }
}