diff options
-rw-r--r-- | src/com/android/dialer/list/ShortcutCardsAdapter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/ShortcutCardsAdapter.java b/src/com/android/dialer/list/ShortcutCardsAdapter.java index b20df063e..4bd914f25 100644 --- a/src/com/android/dialer/list/ShortcutCardsAdapter.java +++ b/src/com/android/dialer/list/ShortcutCardsAdapter.java @@ -348,7 +348,9 @@ public class ShortcutCardsAdapter extends BaseAdapter { if (ratioHidden > 0.5f) { mClipRect.set(0, 0 , 0, 0); + setVisibility(View.INVISIBLE); } else { + setVisibility(View.VISIBLE); int newLeft = (int) (ratioHidden * mCardMaxHorizontalClip); int newRight = width - newLeft; int newTop = (int) (ratioHidden * height); |