导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - SocialImRnPortraitActivity.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 SocialImRnPortraitActivity.java JAVA 源代码文件

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


package com.wifitutu.social.im.ui;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import androidx.core.app.o;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.kernel.d;
import com.wifitutu.link.foundation.kernel.ui.q;
import com.wifitutu.link.foundation.kernel.ui.q0;
import com.wifitutu.link.foundation.kernel.ui.r0;
import com.wifitutu.link.foundation.kernel.ui.u0;
import com.wifitutu.link.foundation.kernel.ui.v0;
import com.wifitutu.widget.react_native.RnPortraitActivity;
import ka0.h;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.C3043m0;
import lg0.d4;
import lg0.e0;
import p80.g;

@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0005\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J\u0019\u0010\b\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0014¢\u0006\u0004\b\b\u0010\tJ\u0017\u0010\f\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\nH\u0014¢\u0006\u0004\b\f\u0010\rJ\u000f\u0010\u000e\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u000e\u0010\u0003J\u000f\u0010\u000f\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\u000f\u0010\u0003J\u0017\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u0011\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0012\u0010\u0013J\u0017\u0010\u0016\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u0014H\u0002¢\u0006\u0004\b\u0016\u0010\u0017J\u000f\u0010\u0018\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0018\u0010\u0003¨\u0006\u0019"}, d2 = {"Lcom/wifitutu/social/im/ui/SocialImRnPortraitActivity;", "Lcom/wifitutu/widget/react_native/RnPortraitActivity;", "<init>", "()V", "Llg0/e0;", "d0", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Landroid/content/Intent;", "intent", "onNewIntent", "(Landroid/content/Intent;)V", "onResume", "Z", "Landroid/content/res/Configuration;", "newConfig", "onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "", "height", "e0", "(I)V", "c0", "social-im-impl_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class SocialImRnPortraitActivity extends RnPortraitActivity {
    public static ChangeQuickRedirect changeQuickRedirect;

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class a extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a() {
            super(0);
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24331, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24330, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            h.i(SocialImRnPortraitActivity.this.getWindow());
        }
    }

    @Metadata(d1 = {"\u0000\u001f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001JY\u0010\u000e\u001a\u00020\r2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00042\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u00042\u0006\u0010\f\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u000e\u0010\u000f¨\u0006\u0010"}, d2 = {"com/wifitutu/social/im/ui/SocialImRnPortraitActivity$b", "Landroid/view/View$OnLayoutChangeListener;", "Landroid/view/View;", "v", "", "left", "top", "right", "bottom", "oldLeft", "oldTop", "oldRight", "oldBottom", "Llg0/e0;", "onLayoutChange", "(Landroid/view/View;IIIIIIII)V", "social-im-impl_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class b implements View.OnLayoutChangeListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public b() {
        }

        @Override
        public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
            Object[] objArr = {v, new Integer(left), new Integer(top), new Integer(right), new Integer(bottom), new Integer(oldLeft), new Integer(oldTop), new Integer(oldRight), new Integer(oldBottom)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            if (PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 24332, new Class[]{View.class, cls, cls, cls, cls, cls, cls, cls, cls}, Void.TYPE).isSupported) {
                return;
            }
            SocialImRnPortraitActivity.access$get_binding(SocialImRnPortraitActivity.this).E.removeOnLayoutChangeListener(this);
            SocialImRnPortraitActivity.access$setHeightProps(SocialImRnPortraitActivity.this, bottom - top);
        }
    }

    public static final g access$get_binding(SocialImRnPortraitActivity socialImRnPortraitActivity) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{socialImRnPortraitActivity}, (Object) null, changeQuickRedirect, true, 24328, new Class[]{SocialImRnPortraitActivity.class}, g.class);
        return proxy.isSupported ? (g) proxy.result : socialImRnPortraitActivity.X();
    }

    public static final void access$setHeightProps(SocialImRnPortraitActivity socialImRnPortraitActivity, int i) {
        if (PatchProxy.proxy(new Object[]{socialImRnPortraitActivity, new Integer(i)}, (Object) null, changeQuickRedirect, true, 24329, new Class[]{SocialImRnPortraitActivity.class, Integer.TYPE}, Void.TYPE).isSupported) {
            return;
        }
        socialImRnPortraitActivity.e0(i);
    }

    private final void d0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24325, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        int height = X().E.getHeight();
        if (height > 0) {
            e0(height);
        }
        X().E.addOnLayoutChangeListener(new b());
    }

    @Override
    public void Z() {
        u0 navigationBar;
        Boolean immersive;
        u0 navigationBar2;
        v0 statusBar;
        String backgroundColor;
        r0 actionBar;
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24323, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.Z();
        q0 theme = getOption().getTheme();
        if (theme != null && (actionBar = theme.getActionBar()) != null && n.d(actionBar.getVisible(), Boolean.FALSE) && n.d(actionBar.getImmersive(), Boolean.TRUE)) {
            X().B.getTitle().setVisibility(8);
        }
        q0 theme2 = getOption().getTheme();
        if (theme2 != null && (statusBar = theme2.getStatusBar()) != null && (backgroundColor = statusBar.getBackgroundColor()) != null) {
            Integer a2 = C3043m0.INSTANCE.a(backgroundColor);
            h.f(this, a2 != null ? a2.intValue() : -1);
        }
        q0 theme3 = getOption().getTheme();
        String backgroundColor2 = (theme3 == null || (navigationBar2 = theme3.getNavigationBar()) == null) ? null : navigationBar2.getBackgroundColor();
        C3043m0.Companion companion = C3043m0.INSTANCE;
        if (backgroundColor2 == null) {
            backgroundColor2 = "#F6F6F6";
        }
        Integer a3 = companion.a(backgroundColor2);
        getWindow().setNavigationBarColor(a3 != null ? a3.intValue() : 16185078);
        q0 theme4 = getOption().getTheme();
        if (theme4 == null || (navigationBar = theme4.getNavigationBar()) == null || (immersive = navigationBar.getImmersive()) == null) {
            return;
        }
        d4.J(immersive.booleanValue(), new a());
    }

    public final void c0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24327, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        o.g(this).d();
    }

    public final void e0(int height) {
        if (PatchProxy.proxy(new Object[]{new Integer(height)}, this, changeQuickRedirect, false, 24326, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
            return;
        }
        Bundle appProperties = X().E.getAppProperties();
        if (appProperties == null) {
            appProperties = new Bundle();
        }
        appProperties.putInt("_view_height", (int) Math.ceil(q.b(d.c(d.d()), height)));
        X().E.setAppProperties(appProperties);
    }

    public void onConfigurationChanged(Configuration newConfig) {
        if (PatchProxy.proxy(new Object[]{newConfig}, this, changeQuickRedirect, false, 24324, new Class[]{Configuration.class}, Void.TYPE).isSupported) {
            return;
        }
        super.onConfigurationChanged(newConfig);
        d0();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        if (PatchProxy.proxy(new Object[]{savedInstanceState}, this, changeQuickRedirect, false, 24320, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            return;
        }
        super.onCreate(savedInstanceState);
        c0();
    }

    public void onNewIntent(Intent intent) {
        if (PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 24321, new Class[]{Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
        c0();
    }

    @Override
    public void onResume() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 24322, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onResume();
        d0();
    }
}