diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/FolderInfo.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/FolderInfo.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/cyanogenmod/trebuchet/FolderInfo.java b/src/com/cyanogenmod/trebuchet/FolderInfo.java index 710b137..7c6941b 100644 --- a/src/com/cyanogenmod/trebuchet/FolderInfo.java +++ b/src/com/cyanogenmod/trebuchet/FolderInfo.java @@ -48,8 +48,8 @@ class FolderInfo extends ItemInfo { */ public void add(ShortcutInfo item) { contents.add(item); - for (int i = 0; i < listeners.size(); i++) { - listeners.get(i).onAdd(item); + for (FolderListener listener : listeners) { + listener.onAdd(item); } itemsChanged(); } @@ -61,16 +61,16 @@ class FolderInfo extends ItemInfo { */ public void remove(ShortcutInfo item) { contents.remove(item); - for (int i = 0; i < listeners.size(); i++) { - listeners.get(i).onRemove(item); + for (FolderListener listener : listeners) { + listener.onRemove(item); } itemsChanged(); } public void setTitle(CharSequence title) { this.title = title; - for (int i = 0; i < listeners.size(); i++) { - listeners.get(i).onTitleChanged(title); + for (FolderListener listener : listeners) { + listener.onTitleChanged(title); } } @@ -91,8 +91,8 @@ class FolderInfo extends ItemInfo { } void itemsChanged() { - for (int i = 0; i < listeners.size(); i++) { - listeners.get(i).onItemsChanged(); + for (FolderListener listener : listeners) { + listener.onItemsChanged(); } } |