diff options
Diffstat (limited to 'src/com/android/launcher2/WidgetListAdapter.java')
-rw-r--r-- | src/com/android/launcher2/WidgetListAdapter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher2/WidgetListAdapter.java b/src/com/android/launcher2/WidgetListAdapter.java index 5a569ea..5d5d86a 100644 --- a/src/com/android/launcher2/WidgetListAdapter.java +++ b/src/com/android/launcher2/WidgetListAdapter.java @@ -85,6 +85,8 @@ public class WidgetListAdapter extends BaseAdapter { image.setBounds(0, 0, image.getIntrinsicWidth(), image.getIntrinsicHeight()); textView.setCompoundDrawables(null, image, null, null); textView.setText(info.label); + // Store the widget info on the associated view so we can easily fetch it later + textView.setTag(info); return textView; } |