导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - YellowBotWebViewActivity.java 源代码

正在查看: Bhakti v5.4.0 应用的 YellowBotWebViewActivity.java JAVA 源代码文件

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


package com.yellowmessenger.ymchat;

import T0.N0;
import android.graphics.Insets;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowInsets;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.j0;
import g2.z0;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class YellowBotWebViewActivity extends AppCompatActivity {
    private final void loadFragment() {
        j0 supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.getClass();
        androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
        Intrinsics.checkNotNullExpressionValue(aVar, "supportFragmentManager.beginTransaction()");
        int i = c.container;
        YellowBotWebviewFragment.Companion.getClass();
        aVar.g(i, new YellowBotWebviewFragment(), (String) null);
        aVar.d((String) null);
        aVar.j();
    }

    public static final WindowInsets m12onCreate$lambda0(View view, View view2, WindowInsets windowInsets) {
        Intrinsics.checkNotNullParameter(view2, "<anonymous parameter 0>");
        Intrinsics.checkNotNullParameter(windowInsets, "insets");
        Insets x = e1.d.x(windowInsets, e1.d.w());
        Intrinsics.checkNotNullExpressionValue(x, "insets.getInsets(WindowInsets.Type.statusBars())");
        Insets x2 = e1.d.x(windowInsets, z0.s());
        Intrinsics.checkNotNullExpressionValue(x2, "insets.getInsets(WindowI…ets.Type.displayCutout())");
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            throw new NullPointerException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
        }
        ConstraintLayout.LayoutParams layoutParams2 = (ConstraintLayout.LayoutParams) layoutParams;
        ((ViewGroup.MarginLayoutParams) layoutParams2).height = N0.A(x);
        layoutParams2.setMargins(N0.a(x2), 0, N0.C(x2), 0);
        view.setLayoutParams(layoutParams2);
        view.requestLayout();
        return windowInsets;
    }

    public void onBackPressed() {
        try {
            j0 supportFragmentManager = getSupportFragmentManager();
            if (supportFragmentManager.d.size() + (supportFragmentManager.h != null ? 1 : 0) == 1) {
                Object obj = f.i().a;
                finish();
            } else {
                super/*androidx.activity.ComponentActivity*/.onBackPressed();
            }
        } catch (Exception unused) {
            finish();
        }
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
        setContentView(d.activity_yellow_bot_web_view);
        loadFragment();
        if (Build.VERSION.SDK_INT > 34) {
            View findViewById = findViewById(c.container);
            final View findViewById2 = findViewById(c.customStatusBar);
            findViewById2.setVisibility(0);
            try {
                ((g) uo.a.H().b).getClass();
                ((g) uo.a.H().b).getClass();
            } catch (Exception unused) {
            }
            if (findViewById != null) {
                findViewById.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() {
                    @Override
                    public final WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) {
                        WindowInsets m12onCreate$lambda0;
                        m12onCreate$lambda0 = YellowBotWebViewActivity.m12onCreate$lambda0(findViewById2, view, windowInsets);
                        return m12onCreate$lambda0;
                    }
                });
            }
        }
    }
}