diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-21 22:20:59 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-21 22:20:59 +0000 |
commit | 7f2927a09dd19f5368bbc1e042c86f9c3da2ddb2 (patch) | |
tree | f703b086ac69cd823f1eb932d4ba3cb5caedf15f | |
parent | f47fecf9de3bb745a3dfa76e2cf8257cd914ba69 (diff) | |
parent | 4889048e2b02d0f1ec2d7c1a606ef039c2c97b63 (diff) |
am 4889048e: am c5517b3e: Protect against class cast exception DO NOT MERGE
* commit '4889048e2b02d0f1ec2d7c1a606ef039c2c97b63':
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 79dbe8c49..484a3d99f 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), position); |