Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderDrawable.java +6 −6 Original line number Diff line number Diff line Loading @@ -42,10 +42,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Action to render a given Drawable provided through {@link DrawableParams#getDrawable()}. * Loading @@ -72,8 +68,12 @@ public class RenderDrawable extends RenderAction<DrawableParams> { BridgeContext context = getContext(); drawableResource = context.getRenderResources().resolveResValue(drawableResource); if (drawableResource == null || drawableResource.getResourceType() != ResourceType.DRAWABLE) { if (drawableResource == null) { return Status.ERROR_NOT_A_DRAWABLE.createResult(); } ResourceType resourceType = drawableResource.getResourceType(); if (resourceType != ResourceType.DRAWABLE && resourceType != ResourceType.MIPMAP) { return Status.ERROR_NOT_A_DRAWABLE.createResult(); } Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderDrawable.java +6 −6 Original line number Diff line number Diff line Loading @@ -42,10 +42,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Action to render a given Drawable provided through {@link DrawableParams#getDrawable()}. * Loading @@ -72,8 +68,12 @@ public class RenderDrawable extends RenderAction<DrawableParams> { BridgeContext context = getContext(); drawableResource = context.getRenderResources().resolveResValue(drawableResource); if (drawableResource == null || drawableResource.getResourceType() != ResourceType.DRAWABLE) { if (drawableResource == null) { return Status.ERROR_NOT_A_DRAWABLE.createResult(); } ResourceType resourceType = drawableResource.getResourceType(); if (resourceType != ResourceType.DRAWABLE && resourceType != ResourceType.MIPMAP) { return Status.ERROR_NOT_A_DRAWABLE.createResult(); } Loading