导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - PermissionsActivity.java 源代码

正在查看: BetterTogether v3.0.0 应用的 PermissionsActivity.java JAVA 源代码文件

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


package com.onesignal;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import java.util.HashMap;

public class PermissionsActivity extends Activity {
    public static boolean i;
    public static boolean v;
    public static boolean w;
    public static final HashMap x = new HashMap();
    public String d;
    public String e;

    public final void a(Bundle bundle) {
        String string = bundle.getString("INTENT_EXTRA_CALLBACK_CLASS");
        try {
            Class.forName(string);
            this.d = bundle.getString("INTENT_EXTRA_PERMISSION_TYPE");
            String string2 = bundle.getString("INTENT_EXTRA_ANDROID_PERMISSION_STRING");
            this.e = string2;
            if (i) {
                return;
            }
            i = true;
            w = true ^ y2.f.b(this, string2);
            requestPermissions(new String[]{string2}, 2);
        } catch (ClassNotFoundException unused) {
            throw new RuntimeException(a0.g0.j("Could not find callback class for PermissionActivity: ", string));
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        y3.A(this);
        a(getIntent().getExtras());
    }

    @Override
    public final void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        a(intent.getExtras());
    }

    @Override
    public final void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
        i = false;
        if (i2 == 2) {
            new Handler().postDelayed(new m1(10, this, iArr), 500L);
        }
        if (g.e != null) {
            e.d.remove("com.onesignal.PermissionsActivity");
        }
        finish();
        overridePendingTransition(2130772006, 2130772007);
    }
}