diff options
author | Yorke Lee <yorkelee@google.com> | 2014-08-06 16:11:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-06 16:11:51 +0000 |
commit | 577a6824d4220f0e37f0d1ec1c3afc70a847500a (patch) | |
tree | eabe4d9a5bfd3a7168c727aed07ffe2ad68fa73b | |
parent | 772e6410e595699080ccf2157dadcbd41228a189 (diff) | |
parent | 005303e4b1da7fff6e7d441c95936b1ba9eaa934 (diff) |
am 005303e4: Fix shortcut card clipping bug
* commit '005303e4b1da7fff6e7d441c95936b1ba9eaa934':
Fix shortcut card clipping bug
-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); |