diff options
| author | 2023-03-21 11:54:59 +0100 | |
|---|---|---|
| committer | 2023-03-21 11:02:27 +0000 | |
| commit | 43e93f0afc518d20be2138d8d053758771ee954b (patch) | |
| tree | 671e717920bb2fd5ec8b02f07ac07214a00e75f3 | |
| parent | a55730c9bc6287235374a2461e0a36a60f64a5e2 (diff) | |
Fix notification expand-collapse crossfade issue
Since the user can drag back and forth, the fadeOut function should not return early, when the view's alpha is already 0. It should allow going away from 0 again. This check was introduced by ag/21061907.
Bug: 272263243
Test: Manual: i.e. expanding and collapsing notifications by dragging manually
Change-Id: If36327c6db4e440e0d95f51c18035a78226796a0
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/CrossFadeHelper.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/CrossFadeHelper.java b/packages/SystemUI/src/com/android/systemui/statusbar/CrossFadeHelper.java index 5adb58bca886..63179dac7b8c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/CrossFadeHelper.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/CrossFadeHelper.java @@ -77,12 +77,6 @@ public class CrossFadeHelper { */ public static void fadeOut(View view, float fadeOutAmount, boolean remap) { view.animate().cancel(); - - // Don't fade out if already not visible. - if (view.getAlpha() == 0.0f) { - return; - } - if (fadeOutAmount == 1.0f && view.getVisibility() != View.GONE) { view.setVisibility(View.INVISIBLE); } else if (view.getVisibility() == View.INVISIBLE) { |