package p037.p041.p051;

import android.graphics.Rect;
import android.util.Log;
import android.view.View;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import p037.p065.p078.C1920;

/* JADX INFO: renamed from: މ.ؠ.ގ.ೲ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1698 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Method f5540;

    static {
        try {
            Method declaredMethod = View.class.getDeclaredMethod("computeFitSystemWindows", Rect.class, Rect.class);
            f5540 = declaredMethod;
            if (declaredMethod.isAccessible()) {
                return;
            }
            f5540.setAccessible(true);
        } catch (NoSuchMethodException unused) {
            Log.d("ViewUtils", "Could not find method computeFitSystemWindows. Oh well.");
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m3317(View view, Rect rect, Rect rect2) {
        Method method = f5540;
        if (method != null) {
            try {
                method.invoke(view, rect, rect2);
            } catch (Exception e) {
                Log.d("ViewUtils", "Could not invoke computeFitSystemWindows", e);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m3318(View view) {
        return C1920.m3760(view) == 1;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static void m3319(View view) {
        try {
            Method method = view.getClass().getMethod("makeOptionalFitsSystemWindows", new Class[0]);
            if (!method.isAccessible()) {
                method.setAccessible(true);
            }
            method.invoke(view, new Object[0]);
        } catch (IllegalAccessException e) {
            Log.d("ViewUtils", "Could not invoke makeOptionalFitsSystemWindows", e);
        } catch (NoSuchMethodException unused) {
            Log.d("ViewUtils", "Could not find method makeOptionalFitsSystemWindows. Oh well...");
        } catch (InvocationTargetException e2) {
            Log.d("ViewUtils", "Could not invoke makeOptionalFitsSystemWindows", e2);
        }
    }
}
