diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-21 22:15:02 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-21 22:15:02 +0000 |
commit | 4889048e2b02d0f1ec2d7c1a606ef039c2c97b63 (patch) | |
tree | e0291d950c9272f8f00dbf33d9ef46bf450c1970 | |
parent | ae01ab1bb9eaf12e419e071938b734b417869ea8 (diff) | |
parent | c5517b3e7212c3561f8682e6746c94279416bb82 (diff) |
am c5517b3e: Protect against class cast exception DO NOT MERGE
* commit 'c5517b3e7212c3561f8682e6746c94279416bb82':
Protect against class cast exception DO NOT MERGE
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteFragment.java b/src/com/android/dialer/list/PhoneFavoriteFragment.java index 354765f77..0d33b4c85 100644 --- a/src/com/android/dialer/list/PhoneFavoriteFragment.java +++ b/src/com/android/dialer/list/PhoneFavoriteFragment.java @@ -444,7 +444,8 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen final int position = firstVisiblePosition + i; final long itemId = mAdapter.getItemId(position); 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 save horizontal offsets instead saveHorizontalOffsets((ContactTileRow) child, (ArrayList<ContactEntry>) mAdapter.getItem(position), |