package o; import android.text.InputFilter; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; /* loaded from: classes5.dex */ public final class fKI { public static final void aAj_(EditText editText, boolean z) { C14957gcv.e(editText, ""); String obj = editText.getText().toString(); if (z) { editText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(12)}); editText.setText((String) C6583cXR.c(new Object[]{false, true, obj}, -1092823629, 1092823630, (int) System.currentTimeMillis())); } else { editText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(10)}); editText.setText(C6583cXR.v(obj)); } } public static final void a(AppCompatActivity appCompatActivity, Fragment fragment, int i) { C14957gcv.e(appCompatActivity, ""); C14957gcv.e(fragment, ""); yRS supportFragmentManager = appCompatActivity.getSupportFragmentManager(); C14957gcv.c(supportFragmentManager, ""); AbstractC13482fbE a = supportFragmentManager.a(); C14957gcv.c(a, ""); a.b(i, fragment, null, 1); C14957gcv.c(a, ""); a.b(); } public static final void d(AppCompatActivity appCompatActivity, Fragment fragment, int i) { C14957gcv.e(appCompatActivity, ""); C14957gcv.e(fragment, ""); yRS supportFragmentManager = appCompatActivity.getSupportFragmentManager(); C14957gcv.c(supportFragmentManager, ""); AbstractC13482fbE a = supportFragmentManager.a(); C14957gcv.c(a, ""); if (i == 0) { throw new IllegalArgumentException("Must use non-zero containerViewId"); } a.b(i, fragment, null, 2); C14957gcv.c(a, ""); a.b(); } public static final void e(Fragment fragment, Fragment fragment2, int i) { C14957gcv.e(fragment, ""); C14957gcv.e(fragment2, ""); yRS childFragmentManager = fragment.getChildFragmentManager(); C14957gcv.c(childFragmentManager, ""); AbstractC13482fbE a = childFragmentManager.a(); C14957gcv.c(a, ""); if (i == 0) { throw new IllegalArgumentException("Must use non-zero containerViewId"); } a.b(i, fragment2, null, 2); C14957gcv.c(a, ""); a.b(); } public static final void e(View view, int i, int i2, int i3, int i4) { C14957gcv.e(view, ""); ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams = layoutParams instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams : null; if (marginLayoutParams == null) { marginLayoutParams = new ViewGroup.MarginLayoutParams(view.getLayoutParams()); } marginLayoutParams.setMargins(C6583cXR.d(i, view.getContext()), C6583cXR.d(i2, view.getContext()), C6583cXR.d(i3, view.getContext()), C6583cXR.d(i4, view.getContext())); view.setLayoutParams(marginLayoutParams); } }