导航菜单

页面标题

页面副标题

Oolka v2.4.42 - h.java 源代码

正在查看: Oolka v2.4.42 应用的 h.java JAVA 源代码文件

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


package cl.json.social;

import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import co.hyperverge.hyperkyc.ui.WebViewFragment;
import co.hyperverge.hyperkyc.ui.form.FormFragment;
import com.cashfree.pg.core.hidden.nfc.parser.EmvParser;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.WritableMap;

public class h extends o {
    public h(ReactApplicationContext reactApplicationContext) {
        super(reactApplicationContext);
    }

    @Override
    public String b() {
        return null;
    }

    @Override
    public String h() {
        return "com.instagram.android";
    }

    @Override
    public String i() {
        return "https://play.google.com/store/apps/details?id=com.instagram.android";
    }

    @Override
    public void l(ReadableMap readableMap) throws ActivityNotFoundException {
        super.l(readableMap);
        if (n.j(FormFragment.ARG_TYPE, readableMap)) {
            String string = readableMap.getString(FormFragment.ARG_TYPE);
            if (string.startsWith("text")) {
                s(this.c);
                return;
            }
            if (n.j(WebViewFragment.ARG_URL, readableMap)) {
                String string2 = readableMap.getString(WebViewFragment.ARG_URL);
                if (Boolean.valueOf(string2.startsWith("instagram://")).booleanValue()) {
                    t(string2);
                    return;
                }
                String q = q(string);
                r(string2, this.c, Boolean.valueOf(string.startsWith("image")), q);
            }
        }
    }

    public final String q(String str) {
        return str.split(EmvParser.CARD_HOLDER_NAME_SEPARATOR)[r2.length - 1];
    }

    public void r(String str, String str2, Boolean bool, String str3) {
        cl.json.d dVar;
        Boolean valueOf = Boolean.valueOf(n.j("useInternalStorage", this.e) && this.e.getBoolean("useInternalStorage"));
        if (bool.booleanValue()) {
            dVar = new cl.json.d(str, "image/" + str3, "image", valueOf, this.a);
        } else {
            dVar = new cl.json.d(str, "video/" + str3, "video", valueOf, this.a);
        }
        Uri d = dVar.d();
        Intent intent = new Intent("android.intent.action.SEND");
        if (bool.booleanValue()) {
            intent.setType("image/*");
        } else {
            intent.setType("video/*");
        }
        intent.putExtra("android.intent.extra.STREAM", d);
        intent.setPackage("com.instagram.android");
        Intent intent2 = new Intent("com.instagram.share.ADD_TO_STORY");
        intent2.setDataAndType(d, str3);
        intent2.addFlags(1);
        intent2.setPackage("com.instagram.android");
        Intent createChooser = Intent.createChooser(intent, str2);
        createChooser.addFlags(268435456);
        createChooser.putExtra("android.intent.extra.INITIAL_INTENTS", new Intent[]{intent2});
        this.a.getCurrentActivity().grantUriPermission("com.instagram.android", d, 1);
        this.a.startActivity(createChooser);
        WritableMap createMap = Arguments.createMap();
        createMap.putBoolean("success", true);
        createMap.putString("message", f().getPackage());
        TargetChosenReceiver.b(createMap);
    }

    public void s(String str) {
        f().setPackage("com.instagram.android");
        f().setType("text/plain");
        f().setAction("android.intent.action.SEND");
        super.m();
    }

    public void t(String str) {
        Uri parse = Uri.parse(str);
        f().setAction("android.intent.action.VIEW");
        f().setData(parse);
        super.m();
    }
}