package com.github.chrisbanes.photoview; import android.widget.ImageView; /* loaded from: classes.dex */ class Util { /* renamed from: com.github.chrisbanes.photoview.Util$1, reason: invalid class name */ static /* synthetic */ class AnonymousClass1 { static final /* synthetic */ int[] a = new int[ImageView.ScaleType.values().length]; static { try { a[ImageView.ScaleType.MATRIX.ordinal()] = 1; } catch (NoSuchFieldError unused) { } } } static int a(int i) { return (i & 65280) >> 8; } static void a(float f, float f2, float f3) { if (f >= f2) { throw new IllegalArgumentException("Minimum zoom has to be less than Medium zoom. Call setMinimumZoom() with a more appropriate value"); } if (f2 >= f3) { throw new IllegalArgumentException("Medium zoom has to be less than Maximum zoom. Call setMaximumZoom() with a more appropriate value"); } } static boolean a(ImageView imageView) { return imageView.getDrawable() != null; } static boolean a(ImageView.ScaleType scaleType) { if (scaleType == null) { return false; } if (AnonymousClass1.a[scaleType.ordinal()] != 1) { return true; } throw new IllegalStateException("Matrix scale type is not supported"); } }