summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-08-05 18:27:05 -0700
committerYorke Lee <yorkelee@google.com>2014-08-06 01:27:39 +0000
commit005303e4b1da7fff6e7d441c95936b1ba9eaa934 (patch)
tree5551b31ffc964aca233a2481c600d166152af935
parent70da760676635a6b467eb94664a11e6b84dd3194 (diff)
Fix shortcut card clipping bug
Bug: 16820091 Change-Id: Ibbcb90a97f54797e95d813f8e532f9118503d674
-rw-r--r--src/com/android/dialer/list/ShortcutCardsAdapter.java2
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);