导航菜单

页面标题

页面副标题

Housing v14.7.8 - i.java 源代码

正在查看: Housing v14.7.8 应用的 i.java JAVA 源代码文件

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


package cl.json.social;

import android.app.Activity;
import android.content.Intent;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableMap;

public class i extends o {
    private static final String PACKAGE = "com.instagram.android";
    private static final String PLAY_STORE_LINK = "https://play.google.com/store/apps/details?id=com.instagram.android";

    public i(ReactApplicationContext reactApplicationContext) {
        super(reactApplicationContext);
        this.intent = new Intent("com.instagram.share.ADD_TO_STORY");
    }

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

    @Override
    public final String c() {
        return PACKAGE;
    }

    @Override
    public final String d() {
        return PLAY_STORE_LINK;
    }

    @Override
    public final void f(ReadableMap readableMap) {
        String str;
        super.f(readableMap);
        if (!n.e("backgroundImage", readableMap) && !n.e("backgroundVideo", readableMap) && !n.e("stickerImage", readableMap)) {
            throw new IllegalArgumentException("Invalid background or sticker assets provided.");
        }
        Activity currentActivity = this.reactContext.getCurrentActivity();
        if (currentActivity == null) {
            q.a("Something went wrong");
        } else {
            this.intent.putExtra("source_application", readableMap.getString("appId"));
            this.intent.putExtra("bottom_background_color", "#906df4");
            this.intent.putExtra("top_background_color", "#837DF4");
            if (n.e("attributionURL", readableMap)) {
                this.intent.putExtra("content_url", readableMap.getString("attributionURL"));
            }
            if (n.e("backgroundTopColor", readableMap)) {
                this.intent.putExtra("top_background_color", readableMap.getString("backgroundTopColor"));
            }
            if (n.e("backgroundBottomColor", readableMap)) {
                this.intent.putExtra("bottom_background_color", readableMap.getString("backgroundBottomColor"));
            }
            Boolean bool = Boolean.FALSE;
            if (n.e("useInternalStorage", readableMap)) {
                bool = Boolean.valueOf(readableMap.getBoolean("useInternalStorage"));
            }
            Boolean bool2 = bool;
            if (n.e("linkUrl", readableMap)) {
                this.intent.putExtra("link_url", readableMap.getString("linkUrl"));
            }
            if (n.e("linkText", readableMap)) {
                this.intent.putExtra("link_text", readableMap.getString("linkText"));
            }
            boolean z4 = n.e("backgroundImage", readableMap) || n.e("backgroundVideo", readableMap);
            if (z4) {
                String str2 = "image/jpeg";
                if (n.e("backgroundImage", readableMap)) {
                    str = readableMap.getString("backgroundImage");
                } else if (n.e("backgroundVideo", readableMap)) {
                    str = readableMap.getString("backgroundVideo");
                    str2 = "video/*";
                } else {
                    str = "";
                }
                cl.json.e eVar = new cl.json.e(str, str2, "background", bool2, this.reactContext);
                this.intent.setDataAndType(eVar.b(), eVar.a());
                this.intent.setFlags(1);
            }
            if (n.e("stickerImage", readableMap)) {
                cl.json.e eVar2 = new cl.json.e(readableMap.getString("stickerImage"), androidx.media3.common.q.IMAGE_PNG, "sticker", bool2, this.reactContext);
                if (!z4) {
                    this.intent.setType("image/*");
                }
                this.intent.putExtra("interactive_asset_uri", eVar2.b());
                currentActivity.grantUriPermission(PACKAGE, eVar2.b(), 1);
            }
        }
        g(readableMap);
    }
}