Skip to content

Commit 2db72fc

Browse files
committed
Fix blip after notifications are swiped
Bug #6035662 Change-Id: I7f0274c9011247d0fd5ef09a05b7630eda0ca77f
1 parent b442eca commit 2db72fc

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

packages/SystemUI/src/com/android/systemui/SwipeHelper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,6 @@ public void dismissChild(final View view, float velocity) {
236236
public void onAnimationEnd(Animator animation) {
237237
mCallback.onChildDismissed(view);
238238
animView.setLayerType(View.LAYER_TYPE_NONE, null);
239-
// Restore the alpha/translation parameters to what they were before swiping
240-
// (for when these items are recycled)
241-
animView.setAlpha(1f);
242-
setTranslation(animView, 0f);
243239
}
244240
});
245241
anim.addUpdateListener(new AnimatorUpdateListener() {

packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ public void onChildDismissed(View v) {
181181
mLinearLayout.removeView(v);
182182
mCallback.handleSwipe(v);
183183
v.setActivated(false);
184+
// Restore the alpha/translation parameters to what they were before swiping
185+
// (for when these items are recycled)
186+
View contentView = getChildContentView(v);
187+
contentView.setAlpha(1f);
188+
contentView.setTranslationY(0);
184189
}
185190

186191
public void onBeginDrag(View v) {

packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ public void onChildDismissed(View v) {
187187
mLinearLayout.removeView(v);
188188
mCallback.handleSwipe(v);
189189
v.setActivated(false);
190+
// Restore the alpha/translation parameters to what they were before swiping
191+
// (for when these items are recycled)
192+
View contentView = getChildContentView(v);
193+
contentView.setAlpha(1f);
194+
contentView.setTranslationX(0);
190195
}
191196

192197
public void onBeginDrag(View v) {

0 commit comments

Comments
 (0)