what-the-bank/sources/o/bNC.java

55 lines
1.7 KiB
Java

package o;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.maps.android.ui.RotationLayout;
import o.pEI;
/* loaded from: classes2.dex */
public final class bNC {
public View a;
public ViewGroup b;
public RotationLayout c;
public final Context d;
public int e;
public TextView h;
private C14997geF j;
private float i = 0.5f;
private float g = 1.0f;
public bNC(Context context) {
this.d = context;
this.j = new C14997geF(context.getResources());
ViewGroup viewGroup = (ViewGroup) LayoutInflater.from(context).inflate(pEI.LWm.amu_text_bubble, (ViewGroup) null);
this.b = viewGroup;
RotationLayout rotationLayout = (RotationLayout) viewGroup.getChildAt(0);
this.c = rotationLayout;
TextView textView = (TextView) rotationLayout.findViewById(pEI.RVV.amu_text);
this.h = textView;
this.a = textView;
this.j.d = -1;
NJ_(this.j);
int i = pEI.Sts.amu_Bubble_TextAppearance_Dark;
TextView textView2 = this.h;
if (textView2 != null) {
textView2.setTextAppearance(context, i);
}
}
public final void NJ_(Drawable drawable) {
this.b.setBackgroundDrawable(drawable);
if (drawable != null) {
Rect rect = new Rect();
drawable.getPadding(rect);
this.b.setPadding(rect.left, rect.top, rect.right, rect.bottom);
return;
}
this.b.setPadding(0, 0, 0, 0);
}
}