Merge "Fix notification expand-collapse crossfade issue" into tm-qpr-dev

This commit is contained in:
Selim Cinek
2023-03-22 17:32:58 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {