diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index b50f94e62..e94555e2f 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -141,8 +141,8 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste // slideOffset is 1 when the shortcut card is fully exposed, and 0 when completely // hidden. float ratioCardHidden = (1 - slideOffset) * 1.5f; - if (mShortcutCardsListView.getCount() > 0) { - SwipeableShortcutCard v = + if (mShortcutCardsListView.getChildCount() > 0) { + final SwipeableShortcutCard v = (SwipeableShortcutCard) mShortcutCardsListView.getChildAt(0); v.clipCard(ratioCardHidden); } @@ -348,7 +348,7 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste mRemoveView.setAlpha(show ? 0 : 1); mRemoveView.animate().alpha(show ? 1 : 0).start(); - if (mShortcutCardsListView.getCount() > 0) { + if (mShortcutCardsListView.getChildCount() > 0) { View v = mShortcutCardsListView.getChildAt(0); v.animate().withLayer() .alpha(show ? REMOVE_VIEW_SHOWN_ALPHA : REMOVE_VIEW_HIDDEN_ALPHA) |