Add more logging for bug 6499508 (getting warmer!)

Change-Id: Id55c6e9641508804d7f4a1b83e1251ea960d4aa5
This commit is contained in:
Michael Jurka
2012-06-01 05:06:01 -07:00
parent 7b996d19af
commit 4f500b8592

View File

@@ -174,6 +174,13 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
convertView = createView(parent);
if (convertView.getParent() != null) {
throw new RuntimeException("Recycled child has parent");
}
} else {
if (convertView.getParent() != null) {
throw new RuntimeException("Recycled child has parent");
}
}
ViewHolder holder = (ViewHolder) convertView.getTag();