package ῲ.ῲ.㴹;

import android.graphics.Rect;
import android.os.Build;
import android.util.Log;
import android.view.View;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import ῲ.ᨨ.ᨨ.C1729;

/* renamed from: ῲ.ῲ.㴹.㒁  reason: contains not printable characters */
/* compiled from: ViewUtils */
public class C2033 {

    /* renamed from: K  reason: contains not printable characters */
    public static Method f6888;

    static {
        int i = Build.VERSION.SDK_INT;
        try {
            f6888 = View.class.getDeclaredMethod("computeFitSystemWindows", Rect.class, Rect.class);
            if (!f6888.isAccessible()) {
                f6888.setAccessible(true);
            }
        } catch (NoSuchMethodException unused) {
            Log.d("ViewUtils", "Could not find method computeFitSystemWindows. Oh well.");
        }
    }

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

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m5266(View view) {
        return C1729.m4511(view) == 1;
    }

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