package com.igaworks.ssp.common.o; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ImageView; /* loaded from: classes2.dex */ public class a { public static void a(View view) { if (view == null) { return; } view.setBackgroundDrawable(null); if (view instanceof ViewGroup) { ViewGroup viewGroup = (ViewGroup) view; int childCount = viewGroup.getChildCount(); for (int i10 = 0; i10 < childCount; i10++) { a(viewGroup.getChildAt(i10)); } if (!(view instanceof AdapterView)) { viewGroup.removeAllViews(); } } if (view instanceof ImageView) { ((ImageView) view).setImageDrawable(null); } } }