diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-21 22:26:37 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-21 22:26:37 +0000 |
commit | 8ebb189f2dbe40ec34eb9814936a1a9d8024ee7f (patch) | |
tree | f703b086ac69cd823f1eb932d4ba3cb5caedf15f | |
parent | 5d1a521615549925047d0f41a2c0e9519541267b (diff) | |
parent | 7f2927a09dd19f5368bbc1e042c86f9c3da2ddb2 (diff) |
am 7f2927a0: am 4889048e: am c5517b3e: Protect against class cast exception DO NOT MERGE
* commit '7f2927a09dd19f5368bbc1e042c86f9c3da2ddb2':
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); |