Turn off recycler for list items.
Change-Id: I2aae67e7014cb62a923751124f20770beb009003
diff --git a/src/com/android/mail/ui/AnimatedAdapter.java b/src/com/android/mail/ui/AnimatedAdapter.java
index 18433ae..0e0ea2e 100644
--- a/src/com/android/mail/ui/AnimatedAdapter.java
+++ b/src/com/android/mail/ui/AnimatedAdapter.java
@@ -193,6 +193,9 @@
@Override
public View getView(int position, View convertView, ViewGroup parent) {
+ // TODO (mindyp) turn off use of recycler for now as there is some issue
+ // in getItemViewType
+ convertView = null;
if (mShowFooter && position == super.getCount()) {
return mFooter;
}
@@ -223,7 +226,7 @@
*/
private View getAnimatingView(int position, View convertView, ViewGroup parent) {
// We are getting the wrong view, and we need to gracefully carry on.
- if (!(convertView instanceof AnimatingItemView)) {
+ if (convertView != null || !(convertView instanceof AnimatingItemView)) {
LogUtils.d(LOG_TAG, "AnimatedAdapter.getAnimatingView received the wrong view!");
convertView = null;
}