导航菜单

页面标题

页面副标题

FileWipe Pro v3.0.0 - InternalStoreWebpageActivity.java 源代码

正在查看: FileWipe Pro v3.0.0 应用的 InternalStoreWebpageActivity.java JAVA 源代码文件

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


package com.fyber.inneractive.sdk.activities;

import android.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.view.WindowManager;
import com.fyber.inneractive.sdk.config.global.features.q;
import com.fyber.inneractive.sdk.external.InneractiveAdSpot;
import com.fyber.inneractive.sdk.external.InneractiveAdSpotManager;
import com.fyber.inneractive.sdk.flow.a0;
import com.fyber.inneractive.sdk.flow.v;
import com.fyber.inneractive.sdk.network.u;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.web.t0;
import com.fyber.inneractive.sdk.web.v0;
import java.lang.ref.WeakReference;

public class InternalStoreWebpageActivity extends InneractiveBaseActivity {
    public static final String EXTRA_KEY_SPOT_ID = "spotId";

    public ViewGroup f5178b;

    public v0 f5179c;

    public com.fyber.inneractive.sdk.config.global.features.p f5180d = com.fyber.inneractive.sdk.config.global.features.p.FullScreen;

    public static void startActivity(Context context, String str) {
        Intent intent = new Intent(context, (Class<?>) InternalStoreWebpageActivity.class);
        intent.putExtra("spotId", str);
        if (!(context instanceof Activity)) {
            intent.setFlags(268435456);
        }
        context.startActivity(intent);
    }

    @Override
    public void finish() {
        super.finish();
        v0 v0Var = this.f5179c;
        if (v0Var != null) {
            v0Var.C = false;
            t0 t0Var = v0Var.f8779i;
            if (t0Var != null) {
                a0 a0Var = (a0) t0Var;
                IAlog.a("onInternalStoreWebpageDismissed callback called", new Object[0]);
                if (a0Var.f5640c != null) {
                    IAlog.a("%sCalling external interface onAdWillCloseInternalBrowser", IAlog.a(a0Var));
                    a0Var.f5640c.onAdWillCloseInternalBrowser(a0Var.f5638a);
                }
            }
        }
    }

    @Override
    public void onBackPressed() {
        v0 v0Var = this.f5179c;
        if (v0Var != null) {
            if (v0Var.f8792x) {
                return;
            }
            if (v0Var.f8791w) {
                v0Var.d("navigateBack();");
                return;
            }
        }
        super.onBackPressed();
    }

    @Override
    public void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        WindowManager.LayoutParams attributes = getWindow().getAttributes();
        if (attributes.width == com.fyber.inneractive.sdk.util.o.e() || this.f5180d != com.fyber.inneractive.sdk.config.global.features.p.Modal) {
            return;
        }
        attributes.gravity = 83;
        attributes.height = (int) (com.fyber.inneractive.sdk.util.o.d() * 0.8f);
        attributes.width = com.fyber.inneractive.sdk.util.o.e();
        getWindow().setAttributes(attributes);
    }

    @Override
    public void onCreate(Bundle bundle) {
        InneractiveAdSpot spot;
        String stringExtra = getIntent().getStringExtra("spotId");
        if (TextUtils.isEmpty(stringExtra)) {
            IAlog.f("%sSpot id is empty", IAlog.a(this));
            spot = null;
        } else {
            spot = InneractiveAdSpotManager.get().getSpot(stringExtra);
        }
        if (spot == null || spot.getAdContent() == null) {
            super.onCreate(bundle);
            finish();
            return;
        }
        q qVar = (q) spot.getAdContent().f5956c.a(q.class);
        com.fyber.inneractive.sdk.config.global.features.p c4 = qVar != null ? qVar.c() : com.fyber.inneractive.sdk.config.global.features.p.FullScreen;
        this.f5180d = c4;
        if (c4 == com.fyber.inneractive.sdk.config.global.features.p.Modal) {
            WindowManager.LayoutParams attributes = getWindow().getAttributes();
            attributes.gravity = 83;
            attributes.height = (int) (com.fyber.inneractive.sdk.util.o.d() * 0.8f);
            attributes.width = com.fyber.inneractive.sdk.util.o.e();
            attributes.dimAmount = 0.3f;
            getWindow().setAttributes(attributes);
            getWindow().getDecorView().setBackgroundColor(0);
            getWindow().addFlags(514);
            getWindow().setBackgroundDrawable(new ColorDrawable(0));
        } else {
            setTheme(R.style.Theme.NoTitleBar.Fullscreen);
        }
        super.onCreate(bundle);
        setContentView(com.fyber.inneractive.sdk.R.layout.ia_layout_activity_internal_store_webpage);
        this.f5178b = (ViewGroup) findViewById(com.fyber.inneractive.sdk.R.id.internal_store_content);
        v0 b10 = spot.getAdContent().b();
        this.f5179c = b10;
        if (b10 != null) {
            b10.f8785q = new WeakReference(this);
            v0 v0Var = this.f5179c;
            v vVar = v0Var.f8778h;
            if (vVar != null) {
                vVar.a(u.IGNITE_FLOW_STORE_PAGE_OPENED, v0Var.B ? com.fyber.inneractive.sdk.ignite.m.TRUE_SINGLE_TAP : com.fyber.inneractive.sdk.ignite.m.SINGLE_TAP);
            }
            this.f5179c.f8788t.set(0);
        }
    }

    @Override
    public void onDestroy() {
        InneractiveAdSpot spot;
        v0 v0Var;
        super.onDestroy();
        String stringExtra = getIntent().getStringExtra("spotId");
        if (TextUtils.isEmpty(stringExtra)) {
            IAlog.f("%sSpot id is empty", IAlog.a(this));
            spot = null;
        } else {
            spot = InneractiveAdSpotManager.get().getSpot(stringExtra);
        }
        if (spot == null || spot.getAdContent() == null || spot.getAdContent().d() || (v0Var = this.f5179c) == null) {
            return;
        }
        v0Var.f8793y = true;
        v0Var.D = false;
        v0Var.f8772b.f5981h.remove(v0Var);
        v0Var.f8779i = null;
        IAlog.a("destroy internalStoreWebpageController", new Object[0]);
        this.f5179c = null;
    }

    @Override
    public void onPause() {
        super.onPause();
        ViewGroup viewGroup = this.f5178b;
        if (viewGroup != null) {
            viewGroup.removeAllViews();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        v0 v0Var = this.f5179c;
        if (v0Var != null) {
            this.f5178b.addView(v0Var.f8771a, new ViewGroup.LayoutParams(-1, -1));
        }
    }
}