导航菜单

页面标题

页面副标题

OLX India v19.42.007 - InMobiAdActivity.java 源代码

正在查看: OLX India v19.42.007 应用的 InMobiAdActivity.java JAVA 源代码文件

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


package com.inmobi.ads.rendering;

import android.R;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.window.OnBackInvokedCallback;
import android.window.OnBackInvokedDispatcher;
import androidx.appcompat.app.q;
import androidx.appcompat.app.t;
import androidx.appcompat.app.u;
import com.inmobi.media.A4;
import com.inmobi.media.AbstractC0210k3;
import com.inmobi.media.B;
import com.inmobi.media.B4;
import com.inmobi.media.C0084b3;
import com.inmobi.media.C0132e9;
import com.inmobi.media.C0225l4;
import com.inmobi.media.C0238m3;
import com.inmobi.media.C0252n4;
import com.inmobi.media.C0290q3;
import com.inmobi.media.C0315s3;
import com.inmobi.media.InterfaceC0286q;
import com.inmobi.media.P2;
import com.inmobi.media.S9;
import com.inmobi.media.U9;
import com.inmobi.media.r;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;

@Metadata
@SourceDebugExtension
public final class InMobiAdActivity extends Activity {
    public static final SparseArray j = new SparseArray();
    public static S9 k;
    public static U9 l;
    public C0252n4 a;
    public C0225l4 b;
    public S9 c;
    public int d;
    public boolean e;
    public boolean f;
    public boolean g;
    public A4 h;
    public OnBackInvokedCallback i;

    public static final void a(InMobiAdActivity inMobiAdActivity) {
        inMobiAdActivity.a();
    }

    public static final boolean b(InMobiAdActivity inMobiAdActivity, View view, MotionEvent motionEvent) {
        C0290q3 c0290q3;
        if (motionEvent.getAction() != 1) {
            if (motionEvent.getAction() == 0) {
                view.setBackgroundColor(-16711681);
            }
            return true;
        }
        view.setBackgroundColor(-7829368);
        S9 s9 = inMobiAdActivity.c;
        if (s9 != null && (c0290q3 = s9.q0) != null) {
            c0290q3.a("userclickReload");
        }
        S9 s92 = inMobiAdActivity.c;
        if (s92 != null) {
            s92.reload();
        }
        return true;
    }

    public static final boolean c(InMobiAdActivity inMobiAdActivity, View view, MotionEvent motionEvent) {
        if (motionEvent.getAction() != 1) {
            if (motionEvent.getAction() == 0) {
                view.setBackgroundColor(-16711681);
            }
            return true;
        }
        view.setBackgroundColor(-7829368);
        S9 s9 = inMobiAdActivity.c;
        if (s9 == null || !s9.canGoBack()) {
            inMobiAdActivity.e = true;
            inMobiAdActivity.finish();
        } else {
            S9 s92 = inMobiAdActivity.c;
            if (s92 != null) {
                s92.goBack();
            }
        }
        return true;
    }

    public static final boolean d(InMobiAdActivity inMobiAdActivity, View view, MotionEvent motionEvent) {
        S9 s9;
        if (motionEvent.getAction() != 1) {
            if (motionEvent.getAction() == 0) {
                view.setBackgroundColor(-16711681);
            }
            return true;
        }
        view.setBackgroundColor(-7829368);
        S9 s92 = inMobiAdActivity.c;
        if (s92 != null && s92.canGoForward() && (s9 = inMobiAdActivity.c) != null) {
            s9.goForward();
        }
        return true;
    }

    @Override
    public final void onBackPressed() {
        a();
    }

    @Override
    public final void onConfigurationChanged(Configuration configuration) {
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onConfigChanged");
        }
        super.onConfigurationChanged(configuration);
        C0252n4 c0252n4 = this.a;
        if (c0252n4 != null) {
            c0252n4.b();
        }
    }

    @Override
    public final void onCreate(android.os.Bundle r37) {
        throw new UnsupportedOperationException("Method not decompiled: com.inmobi.ads.rendering.InMobiAdActivity.onCreate(android.os.Bundle):void");
    }

    @Override
    public final void onDestroy() {
        InterfaceC0286q fullScreenEventsListener;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onDestroy");
        }
        if (this.e) {
            int i = this.d;
            if (100 == i) {
                S9 s9 = this.c;
                if (s9 != null && (fullScreenEventsListener = s9.getFullScreenEventsListener()) != null) {
                    try {
                        fullScreenEventsListener.b(this.c);
                        this.c.b();
                        C0252n4 c0252n4 = this.a;
                        if (c0252n4 == null) {
                            c0252n4 = null;
                        }
                        S9 s92 = this.c;
                        c0252n4.getClass();
                        c0252n4.b.remove(s92);
                        c0252n4.a();
                        this.c = null;
                    } catch (Exception unused) {
                    }
                }
            } else if (102 == i) {
                C0225l4 c0225l4 = this.b;
                if (c0225l4 != null) {
                    C0252n4 c0252n42 = this.a;
                    if (c0252n42 == null) {
                        c0252n42 = null;
                    }
                    c0252n42.getClass();
                    c0252n42.b.remove(c0225l4);
                    c0252n42.a();
                    B b = c0225l4.c;
                    if (b != null) {
                        b.b();
                    }
                    RelativeLayout relativeLayout = c0225l4.d;
                    if (relativeLayout != null) {
                        relativeLayout.removeAllViews();
                    }
                    C0238m3 c0238m3 = c0225l4.e;
                    if (c0238m3 != null) {
                        C0315s3 c0315s3 = c0238m3.b;
                        if (c0315s3 != null) {
                            c0315s3.destroy();
                        }
                        c0238m3.b = null;
                        c0238m3.c = null;
                        c0238m3.d = null;
                        c0238m3.removeAllViews();
                    }
                    c0225l4.a.clear();
                    c0225l4.b = null;
                    c0225l4.c = null;
                    c0225l4.d = null;
                    c0225l4.e = null;
                }
                this.b = null;
            }
        } else {
            int i2 = this.d;
            if (100 != i2 && 102 == i2) {
                C0225l4 c0225l42 = this.b;
                if (c0225l42 != null) {
                    C0252n4 c0252n43 = this.a;
                    if (c0252n43 == null) {
                        c0252n43 = null;
                    }
                    c0252n43.getClass();
                    c0252n43.b.remove(c0225l42);
                    c0252n43.a();
                    B b2 = c0225l42.c;
                    if (b2 != null) {
                        b2.b();
                    }
                    RelativeLayout relativeLayout2 = c0225l42.d;
                    if (relativeLayout2 != null) {
                        relativeLayout2.removeAllViews();
                    }
                    C0238m3 c0238m32 = c0225l42.e;
                    if (c0238m32 != null) {
                        C0315s3 c0315s32 = c0238m32.b;
                        if (c0315s32 != null) {
                            c0315s32.destroy();
                        }
                        c0238m32.b = null;
                        c0238m32.c = null;
                        c0238m32.d = null;
                        c0238m32.removeAllViews();
                    }
                    c0225l42.a.clear();
                    c0225l42.b = null;
                    c0225l42.c = null;
                    c0225l42.d = null;
                    c0225l42.e = null;
                }
                this.b = null;
            }
        }
        super.onDestroy();
    }

    @Override
    public final void onMultiWindowModeChanged(boolean z) {
        C0225l4 c0225l4;
        C0252n4 c0252n4;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "multiWindow mode - " + z);
        }
        super.onMultiWindowModeChanged(z);
        if (z || (c0225l4 = this.b) == null) {
            return;
        }
        r rVar = c0225l4.b;
        C0132e9 orientationProperties = (rVar == null || !(rVar instanceof S9)) ? null : ((S9) rVar).getOrientationProperties();
        if (orientationProperties == null || (c0252n4 = this.a) == null) {
            return;
        }
        c0252n4.a(orientationProperties);
    }

    @Override
    public final void onNewIntent(Intent intent) {
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onNewIntent");
        }
        super.onNewIntent(intent);
        this.f = false;
        this.c = null;
        setIntent(intent);
        C0225l4 c0225l4 = this.b;
        if (c0225l4 != null) {
            c0225l4.a(intent, j);
            B b = c0225l4.c;
            if (b != null) {
                b.g();
            }
        }
    }

    @Override
    public final void onResume() {
        C0225l4 c0225l4;
        B b;
        InterfaceC0286q fullScreenEventsListener;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onResume");
        }
        super.onResume();
        if (this.e) {
            return;
        }
        int i = this.d;
        if (100 != i) {
            if (102 != i || (c0225l4 = this.b) == null || (b = c0225l4.c) == null) {
                return;
            }
            b.c();
            return;
        }
        S9 s9 = this.c;
        if (s9 == null || (fullScreenEventsListener = s9.getFullScreenEventsListener()) == null) {
            return;
        }
        try {
            if (this.f) {
                return;
            }
            this.f = true;
            fullScreenEventsListener.a(this.c);
        } catch (Exception unused) {
        }
    }

    @Override
    public final void onStart() {
        C0225l4 c0225l4;
        Window window;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onStart");
        }
        super.onStart();
        C0084b3 c0084b3 = C0084b3.a;
        if (c0084b3.G()) {
            if (this.i == null) {
                this.i = new OnBackInvokedCallback() {
                    @Override
                    public final void onBackInvoked() {
                        InMobiAdActivity.a(InMobiAdActivity.this);
                    }
                };
            }
            OnBackInvokedDispatcher a = q.a(this);
            OnBackInvokedCallback onBackInvokedCallback = this.i;
            if (onBackInvokedCallback == null) {
                onBackInvokedCallback = null;
            }
            u.a(a, 0, onBackInvokedCallback);
        }
        if (this.e || 102 != this.d || (c0225l4 = this.b) == null) {
            return;
        }
        B b = c0225l4.c;
        if (b != null) {
            b.g();
        }
        r rVar = c0225l4.b;
        if (rVar != null && (rVar instanceof S9) && ((S9) rVar).D0 && !c0084b3.E() && c0084b3.x()) {
            Object obj = c0225l4.a.get();
            InMobiAdActivity inMobiAdActivity = obj instanceof InMobiAdActivity ? (InMobiAdActivity) obj : null;
            if (inMobiAdActivity == null || (window = inMobiAdActivity.getWindow()) == null) {
                return;
            }
            window.getDecorView().setSystemUiVisibility(5638);
        }
    }

    @Override
    public final void onStop() {
        C0225l4 c0225l4;
        B b;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onStop");
        }
        super.onStop();
        if (C0084b3.a.G() && this.i != null) {
            OnBackInvokedDispatcher a = q.a(this);
            OnBackInvokedCallback onBackInvokedCallback = this.i;
            if (onBackInvokedCallback == null) {
                onBackInvokedCallback = null;
            }
            t.a(a, onBackInvokedCallback);
        }
        if (this.e || (c0225l4 = this.b) == null || (b = c0225l4.c) == null) {
            return;
        }
        b.d();
    }

    public final void a(RelativeLayout relativeLayout) {
        float f = AbstractC0210k3.d().c;
        LinearLayout linearLayout = new LinearLayout(this);
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, (int) (48 * f));
        linearLayout.setOrientation(0);
        linearLayout.setId(65533);
        linearLayout.setWeightSum(100.0f);
        linearLayout.setBackgroundResource(R.drawable.bottom_bar);
        linearLayout.setBackgroundColor(-7829368);
        layoutParams.addRule(12);
        relativeLayout.addView(linearLayout, layoutParams);
        LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-1, -1);
        layoutParams2.weight = 25.0f;
        P2 p2 = new P2(this, (byte) 2, this.h);
        p2.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public final boolean onTouch(View view, MotionEvent motionEvent) {
                return InMobiAdActivity.a(InMobiAdActivity.this, view, motionEvent);
            }
        });
        linearLayout.addView(p2, layoutParams2);
        P2 p22 = new P2(this, (byte) 3, this.h);
        p22.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public final boolean onTouch(View view, MotionEvent motionEvent) {
                return InMobiAdActivity.b(InMobiAdActivity.this, view, motionEvent);
            }
        });
        linearLayout.addView(p22, layoutParams2);
        P2 p23 = new P2(this, (byte) 4, this.h);
        p23.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public final boolean onTouch(View view, MotionEvent motionEvent) {
                return InMobiAdActivity.c(InMobiAdActivity.this, view, motionEvent);
            }
        });
        linearLayout.addView(p23, layoutParams2);
        P2 p24 = new P2(this, (byte) 6, this.h);
        p24.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public final boolean onTouch(View view, MotionEvent motionEvent) {
                return InMobiAdActivity.d(InMobiAdActivity.this, view, motionEvent);
            }
        });
        linearLayout.addView(p24, layoutParams2);
    }

    @Override
    public final void onMultiWindowModeChanged(boolean z, Configuration configuration) {
        super.onMultiWindowModeChanged(z, configuration);
        onMultiWindowModeChanged(z);
    }

    public static final boolean a(InMobiAdActivity inMobiAdActivity, View view, MotionEvent motionEvent) {
        C0290q3 c0290q3;
        if (motionEvent.getAction() == 1) {
            view.setBackgroundColor(-7829368);
            S9 s9 = inMobiAdActivity.c;
            if (s9 != null && (c0290q3 = s9.q0) != null) {
                c0290q3.a("userclickClose");
            }
            inMobiAdActivity.e = true;
            inMobiAdActivity.finish();
            return true;
        }
        if (motionEvent.getAction() == 0) {
            view.setBackgroundColor(-16711681);
        }
        return true;
    }

    public final void a() {
        B b;
        A4 a4 = this.h;
        if (a4 != null) {
            ((B4) a4).c("InMobiAdActivity", "onBackPressed");
        }
        int i = this.d;
        if (i != 102) {
            if (i == 100) {
                A4 a42 = this.h;
                if (a42 != null) {
                    ((B4) a42).c("InMobiAdActivity", "back pressed in browser");
                }
                this.e = true;
                finish();
                return;
            }
            return;
        }
        A4 a43 = this.h;
        if (a43 != null) {
            ((B4) a43).c("InMobiAdActivity", "back pressed on ad");
        }
        C0225l4 c0225l4 = this.b;
        if (c0225l4 == null || (b = c0225l4.c) == null) {
            return;
        }
        b.a();
    }
}