Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a8ba169 authored by Tony Wickham's avatar Tony Wickham
Browse files

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
parent d2fffa6e
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -945,9 +945,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
     */
     */
    public void setFullscreenProgress(float progress) {
    public void setFullscreenProgress(float progress) {
        progress = Utilities.boundToRange(progress, 0, 1);
        progress = Utilities.boundToRange(progress, 0, 1);
        if (progress == mFullscreenProgress) {
            return;
        }
        mFullscreenProgress = progress;
        mFullscreenProgress = progress;
        boolean isFullscreen = mFullscreenProgress > 0;
        boolean isFullscreen = mFullscreenProgress > 0;
        mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE);
        mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE);