42 lines
1.5 KiB
Java
42 lines
1.5 KiB
Java
package o;
|
|
|
|
import android.graphics.Rect;
|
|
import android.view.View;
|
|
import android.widget.FrameLayout;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* renamed from: o.cbV, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public final class C6759cbV {
|
|
public static void Ia_(Rect rect, float f, float f2, float f3, float f4) {
|
|
rect.set((int) (f - f3), (int) (f2 - f4), (int) (f + f3), (int) (f2 + f4));
|
|
}
|
|
|
|
public static void d(C5745byp c5745byp, View view) {
|
|
if (c5745byp == null) {
|
|
return;
|
|
}
|
|
WeakReference<FrameLayout> weakReference = c5745byp.c;
|
|
if ((weakReference != null ? weakReference.get() : null) != null) {
|
|
WeakReference<FrameLayout> weakReference2 = c5745byp.c;
|
|
(weakReference2 != null ? weakReference2.get() : null).setForeground(null);
|
|
} else {
|
|
view.getOverlay().remove(c5745byp);
|
|
}
|
|
}
|
|
|
|
public static void e(C5745byp c5745byp, View view) {
|
|
Rect rect = new Rect();
|
|
view.getDrawingRect(rect);
|
|
c5745byp.setBounds(rect);
|
|
c5745byp.HZ_(view, null);
|
|
WeakReference<FrameLayout> weakReference = c5745byp.c;
|
|
if ((weakReference != null ? weakReference.get() : null) != null) {
|
|
WeakReference<FrameLayout> weakReference2 = c5745byp.c;
|
|
(weakReference2 != null ? weakReference2.get() : null).setForeground(c5745byp);
|
|
} else {
|
|
view.getOverlay().add(c5745byp);
|
|
}
|
|
}
|
|
}
|