From 6a8ba169f289e639789ad90ee94904ad5e160bca Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Fri, 19 Jun 2020 12:20:38 -0500 Subject: [PATCH] Remove progress != mFullscreenProgress optimization Sometimes other methods modify things like icon scale that setting the fullscreen progress should override. Test: open Calculator, open Clock, quick switch to Calculator and ensure its task icon is not showing Bug: 157105795 Change-Id: Iaed3e42f540fdff3648e9db7e6d7dc0b0d0a75df --- .../src/com/android/quickstep/views/TaskView.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java index be2e2345a7..32a39fcc9a 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java @@ -945,9 +945,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable { */ public void setFullscreenProgress(float progress) { progress = Utilities.boundToRange(progress, 0, 1); - if (progress == mFullscreenProgress) { - return; - } mFullscreenProgress = progress; boolean isFullscreen = mFullscreenProgress > 0; mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE);