diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/ButtonDropTarget.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/ButtonDropTarget.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/trebuchet/ButtonDropTarget.java b/src/com/cyanogenmod/trebuchet/ButtonDropTarget.java index 8f819ea..9317d1d 100644 --- a/src/com/cyanogenmod/trebuchet/ButtonDropTarget.java +++ b/src/com/cyanogenmod/trebuchet/ButtonDropTarget.java @@ -71,9 +71,9 @@ public class ButtonDropTarget extends TextView implements DropTarget, DragContro protected Drawable getCurrentDrawable() { Drawable[] drawables = getCompoundDrawables(); - for (int i = 0; i < drawables.length; ++i) { - if (drawables[i] != null) { - return drawables[i]; + for (Drawable drawable : drawables) { + if (drawable != null) { + return drawable; } } return null; |