diff options
author | Chet Haase <chet@google.com> | 2011-07-18 14:03:21 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2011-07-18 14:03:21 -0700 |
commit | c986b3598c76c2b163ea0e8c4fd1de0866438bfa (patch) | |
tree | ab35d39b1c5e86b68ca17e22d43e27b3e88e1925 /packages | |
parent | abb7d66049c176459779a22810b3931d263f68e6 (diff) | |
download | frameworks_base-c986b3598c76c2b163ea0e8c4fd1de0866438bfa.zip frameworks_base-c986b3598c76c2b163ea0e8c4fd1de0866438bfa.tar.gz frameworks_base-c986b3598c76c2b163ea0e8c4fd1de0866438bfa.tar.bz2 |
Fix leftover artifacts from sliding Recents items out
When items were removed from the Recents list, the removeViewInLayout()
method was being called instead of removeView(). This avoided proper
layout and invalidation from occurring, which sometimes resulted in
detritus on the screen since the framework wasn't updating the area
last occupied by the item.
Change-Id: I43132d06df1714f00c399d34908e4d6dd0a8d5c6
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java | 2 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java index 12d6cd9..2a5d1dd 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java @@ -103,7 +103,7 @@ public class RecentsHorizontalScrollView extends HorizontalScrollView { "y", view.getY(), view.getY() + view.getHeight()); anim.addListener(new AnimatorListenerAdapter() { public void onAnimationEnd(Animator animation) { - RecentsHorizontalScrollView.super.removeViewInLayout(view); + RecentsHorizontalScrollView.super.removeView(view); } }); anim.start(); diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java index 9dd170c..47ee4aa 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java @@ -104,7 +104,7 @@ public class RecentsVerticalScrollView extends ScrollView { "x", view.getX(), view.getX() + view.getWidth()); anim.addListener(new AnimatorListenerAdapter() { public void onAnimationEnd(Animator animation) { - RecentsVerticalScrollView.super.removeViewInLayout(view); + RecentsVerticalScrollView.super.removeView(view); } }); anim.start(); |