Loading packages/SystemUI/src/com/android/systemui/statusbar/window/StatusBarWindowController.java +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ public class StatusBarWindowController { private final StatusBarContentInsetsProvider mContentInsetsProvider; private int mBarHeight = -1; private final State mCurrentState = new State(); private boolean mIsAttached; private final ViewGroup mStatusBarWindowView; // The container in which we should run launch animations started from the status bar and Loading Loading @@ -136,6 +137,8 @@ public class StatusBarWindowController { mContentInsetsProvider.addCallback(this::calculateStatusBarLocationsForAllRotations); calculateStatusBarLocationsForAllRotations(); mIsAttached = true; apply(mCurrentState); } /** Adds the given view to the status bar window view. */ Loading Loading @@ -282,6 +285,9 @@ public class StatusBarWindowController { } private void apply(State state) { if (!mIsAttached) { return; } applyForceStatusBarVisibleFlag(state); applyHeight(state); if (mLp != null && mLp.copyFrom(mLpChanged) != 0) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/window/StatusBarWindowController.java +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ public class StatusBarWindowController { private final StatusBarContentInsetsProvider mContentInsetsProvider; private int mBarHeight = -1; private final State mCurrentState = new State(); private boolean mIsAttached; private final ViewGroup mStatusBarWindowView; // The container in which we should run launch animations started from the status bar and Loading Loading @@ -136,6 +137,8 @@ public class StatusBarWindowController { mContentInsetsProvider.addCallback(this::calculateStatusBarLocationsForAllRotations); calculateStatusBarLocationsForAllRotations(); mIsAttached = true; apply(mCurrentState); } /** Adds the given view to the status bar window view. */ Loading Loading @@ -282,6 +285,9 @@ public class StatusBarWindowController { } private void apply(State state) { if (!mIsAttached) { return; } applyForceStatusBarVisibleFlag(state); applyHeight(state); if (mLp != null && mLp.copyFrom(mLpChanged) != 0) { Loading