导航菜单

页面标题

页面副标题

Oolka v2.4.42 - i.java 源代码

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

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


package cl.json.social;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import co.hyperverge.hyperkyc.data.models.HyperKycConfig;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.modules.appstate.AppStateModule;

public class i extends o {
    public i(ReactApplicationContext reactApplicationContext) {
        super(reactApplicationContext);
        n(new Intent("com.instagram.share.ADD_TO_STORY"));
    }

    @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);
        q(readableMap);
        p(readableMap);
    }

    public final void q(ReadableMap readableMap) {
        String str;
        String string;
        String str2;
        if (!n.j("backgroundImage", readableMap) && !n.j("backgroundVideo", readableMap) && !n.j("stickerImage", readableMap)) {
            throw new IllegalArgumentException("Invalid background or sticker assets provided.");
        }
        Activity currentActivity = this.a.getCurrentActivity();
        if (currentActivity == null) {
            TargetChosenReceiver.a("Something went wrong");
            return;
        }
        this.b.putExtra("source_application", readableMap.getString(HyperKycConfig.APP_ID));
        this.b.putExtra("bottom_background_color", "#906df4");
        this.b.putExtra("top_background_color", "#837DF4");
        if (n.j("attributionURL", readableMap)) {
            this.b.putExtra("content_url", readableMap.getString("attributionURL"));
        }
        if (n.j("backgroundTopColor", readableMap)) {
            this.b.putExtra("top_background_color", readableMap.getString("backgroundTopColor"));
        }
        if (n.j("backgroundBottomColor", readableMap)) {
            this.b.putExtra("bottom_background_color", readableMap.getString("backgroundBottomColor"));
        }
        Boolean bool = Boolean.FALSE;
        if (n.j("useInternalStorage", readableMap)) {
            bool = Boolean.valueOf(readableMap.getBoolean("useInternalStorage"));
        }
        Boolean valueOf = Boolean.valueOf(n.j("backgroundImage", readableMap) || n.j("backgroundVideo", readableMap));
        if (valueOf.booleanValue()) {
            if (n.j("backgroundImage", readableMap)) {
                str = readableMap.getString("backgroundImage");
            } else if (n.j("backgroundVideo", readableMap)) {
                string = readableMap.getString("backgroundVideo");
                str2 = "video/*";
                cl.json.d dVar = new cl.json.d(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.a);
                this.b.setDataAndType(dVar.d(), dVar.c());
                this.b.setFlags(1);
            } else {
                str = "";
            }
            str2 = "image/jpeg";
            string = str;
            cl.json.d dVar2 = new cl.json.d(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.a);
            this.b.setDataAndType(dVar2.d(), dVar2.c());
            this.b.setFlags(1);
        }
        if (n.j("stickerImage", readableMap)) {
            cl.json.d dVar3 = new cl.json.d(readableMap.getString("stickerImage"), "image/png", "sticker", bool, this.a);
            if (!valueOf.booleanValue()) {
                this.b.setType("image/*");
            }
            this.b.putExtra("interactive_asset_uri", dVar3.d());
            currentActivity.grantUriPermission("com.instagram.android", dVar3.d(), 1);
        }
    }
}