da.java 1.49 KB
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableContainer;
import android.graphics.drawable.DrawableContainer.DrawableContainerState;
import android.graphics.drawable.InsetDrawable;
import android.support.annotation.RequiresApi;
import android.support.v4.graphics.drawable.DrawableWrapper;

@TargetApi(21)
@RequiresApi(21)
public final class da
{
  public static void a(Drawable paramDrawable)
  {
    for (;;)
    {
      paramDrawable.clearColorFilter();
      if ((paramDrawable instanceof InsetDrawable))
      {
        paramDrawable = ((InsetDrawable)paramDrawable).getDrawable();
      }
      else
      {
        if (!(paramDrawable instanceof DrawableWrapper)) {
          break;
        }
        paramDrawable = ((DrawableWrapper)paramDrawable).getWrappedDrawable();
      }
    }
    if ((paramDrawable instanceof DrawableContainer))
    {
      paramDrawable = (DrawableContainer.DrawableContainerState)((DrawableContainer)paramDrawable).getConstantState();
      if (paramDrawable != null)
      {
        int i = 0;
        int j = paramDrawable.getChildCount();
        while (i < j)
        {
          Drawable localDrawable = paramDrawable.getChild(i);
          if (localDrawable != null) {
            a(localDrawable);
          }
          i += 1;
        }
      }
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/da.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */