package o; import android.graphics.Rect; import android.os.Build; import android.view.View; import androidx.core.view.ViewCompat; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /* loaded from: classes.dex */ public final class mxt { public static final boolean a; private static Method e; static { a = Build.VERSION.SDK_INT >= 27; try { Method declaredMethod = View.class.getDeclaredMethod("computeFitSystemWindows", Rect.class, Rect.class); e = declaredMethod; if (declaredMethod.isAccessible()) { return; } e.setAccessible(true); } catch (NoSuchMethodException unused) { } } public static boolean b(View view) { return ViewCompat.m(view) == 1; } public static void kb_(View view, Rect rect, Rect rect2) { Method method = e; if (method != null) { try { method.invoke(view, rect, rect2); } catch (Exception unused) { } } } public static void d(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 | NoSuchMethodException | InvocationTargetException unused) { } } }