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

Commit 45eb757e authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Remove relayouts

b/29945805

> Workspace relayout occurs when window flag is set to
change the status bar. This should not cause AllAppsTransitionController
to be initialized.
> Setting/Unsetting background drawables on the hotseat
also causes unnecessary layout. Fix this issue.

Change-Id: I73a3bfd3eb4bc34cf6760ffbd9826e3fef867056
parent c9e71b88
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -220,11 +220,10 @@ public class Hotseat extends FrameLayout
    }

    public void setBackgroundTransparent(boolean enable) {
        // This causes re-layout. Should replace the logic with simply setting the background alpha
        if (enable) {
            setBackground(null);
            mBackground.setAlpha(0);
        } else {
            setBackground(mBackground);
            mBackground.setAlpha(255);
        }
    }

+1 −0
Original line number Diff line number Diff line
@@ -444,5 +444,6 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
        if (!mLauncher.isAllAppsVisible()) {
            setProgress(mShiftRange);
        }
        mHotseat.removeOnLayoutChangeListener(this);
    }
}