diff options
Diffstat (limited to 'src/com/android/launcher3/Folder.java')
-rw-r--r-- | src/com/android/launcher3/Folder.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index 2e73c5749..82488169f 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -1562,15 +1562,19 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList /** * Update the view tied to this shortcut. * @param info updated info to be applied to view. + * @return true if view for info was found, false otherwise. */ @SuppressWarnings("unused") - public void updateViewForInfo(final ShortcutInfo info) { + public boolean updateViewForInfo(final ShortcutInfo info) { View v = getViewForInfo(info); if (v != null & v instanceof BubbleTextView) { ((BubbleTextView) v).reapplyItemInfo(info); mItemsInvalidated = true; + return true; } + + return false; } public View getViewForInfo(ShortcutInfo item) { |