Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2429f2f authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Protect against class cast exception

Protect against class cast exception.

Bug:12228894
Change-Id: Ifae04d6354812e296890cfe0c4c5f2fff73c4c2a
parent 79832066
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -538,7 +538,8 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen
                    final View child = mListView.getChildAt(i);
                    int position = firstVisiblePosition + i;
                    final int itemViewType = mAdapter.getItemViewType(position);
                    if (itemViewType == PhoneFavoritesTileAdapter.ViewTypes.TOP) {
                    if (itemViewType == PhoneFavoritesTileAdapter.ViewTypes.TOP &&
                            child instanceof ContactTileRow) {
                        // This is a tiled row, so perform horizontal animations instead
                        performHorizontalAnimations((ContactTileRow) child, (
                                ArrayList<ContactEntry>) mAdapter.getItem(position), idsInPlace);