Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java +10 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ public abstract class PanelBar extends FrameLayout { private static final boolean SPEW = false; private boolean mBouncerShowing; private boolean mExpanded; protected float mPanelFraction; public static final void LOG(String fmt, Object... args) { if (!DEBUG) return; Loading Loading @@ -77,6 +78,14 @@ public abstract class PanelBar extends FrameLayout { if (mPanel != null) mPanel.setImportantForAccessibility(important); } public float getExpansionFraction() { return mPanelFraction; } public boolean isExpanded() { return mExpanded; } private void updateVisibility() { mPanel.setVisibility(mExpanded || mBouncerShowing ? VISIBLE : INVISIBLE); } Loading Loading @@ -131,6 +140,7 @@ public abstract class PanelBar extends FrameLayout { if (SPEW) LOG("panelExpansionChanged: start state=%d", mState); PanelView pv = mPanel; mExpanded = expanded; mPanelFraction = frac; updateVisibility(); // adjust any other panels that may be partially visible if (expanded) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java +0 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,6 @@ public class PhoneStatusBarView extends PanelBar { private final PhoneStatusBarTransitions mBarTransitions; private ScrimController mScrimController; private float mMinFraction; private float mPanelFraction; private Runnable mHideExpandedRunnable = new Runnable() { @Override public void run() { Loading Loading @@ -269,7 +268,6 @@ public class PhoneStatusBarView extends PanelBar { @Override public void panelExpansionChanged(float frac, boolean expanded) { super.panelExpansionChanged(frac, expanded); mPanelFraction = frac; updateScrimFraction(); if ((frac == 0 || frac == 1) && mBar.getNavigationBarView() != null) { mBar.getNavigationBarView().onPanelExpandedChange(expanded); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +6 −0 Original line number Diff line number Diff line Loading @@ -836,11 +836,17 @@ public class StatusBar extends SystemUI implements DemoMode, CollapsedStatusBarFragment statusBarFragment = (CollapsedStatusBarFragment) fragment; statusBarFragment.initNotificationIconArea(mNotificationIconAreaController); PhoneStatusBarView oldStatusBarView = mStatusBarView; mStatusBarView = (PhoneStatusBarView) fragment.getView(); mStatusBarView.setBar(this); mStatusBarView.setPanel(mNotificationPanel); mStatusBarView.setScrimController(mScrimController); mStatusBarView.setBouncerShowing(mBouncerShowing); if (oldStatusBarView != null) { float fraction = oldStatusBarView.getExpansionFraction(); boolean expanded = oldStatusBarView.isExpanded(); mStatusBarView.panelExpansionChanged(fraction, expanded); } if (mHeadsUpAppearanceController != null) { // This view is being recreated, let's destroy the old one mHeadsUpAppearanceController.destroy(); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java +10 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ public abstract class PanelBar extends FrameLayout { private static final boolean SPEW = false; private boolean mBouncerShowing; private boolean mExpanded; protected float mPanelFraction; public static final void LOG(String fmt, Object... args) { if (!DEBUG) return; Loading Loading @@ -77,6 +78,14 @@ public abstract class PanelBar extends FrameLayout { if (mPanel != null) mPanel.setImportantForAccessibility(important); } public float getExpansionFraction() { return mPanelFraction; } public boolean isExpanded() { return mExpanded; } private void updateVisibility() { mPanel.setVisibility(mExpanded || mBouncerShowing ? VISIBLE : INVISIBLE); } Loading Loading @@ -131,6 +140,7 @@ public abstract class PanelBar extends FrameLayout { if (SPEW) LOG("panelExpansionChanged: start state=%d", mState); PanelView pv = mPanel; mExpanded = expanded; mPanelFraction = frac; updateVisibility(); // adjust any other panels that may be partially visible if (expanded) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java +0 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,6 @@ public class PhoneStatusBarView extends PanelBar { private final PhoneStatusBarTransitions mBarTransitions; private ScrimController mScrimController; private float mMinFraction; private float mPanelFraction; private Runnable mHideExpandedRunnable = new Runnable() { @Override public void run() { Loading Loading @@ -269,7 +268,6 @@ public class PhoneStatusBarView extends PanelBar { @Override public void panelExpansionChanged(float frac, boolean expanded) { super.panelExpansionChanged(frac, expanded); mPanelFraction = frac; updateScrimFraction(); if ((frac == 0 || frac == 1) && mBar.getNavigationBarView() != null) { mBar.getNavigationBarView().onPanelExpandedChange(expanded); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +6 −0 Original line number Diff line number Diff line Loading @@ -836,11 +836,17 @@ public class StatusBar extends SystemUI implements DemoMode, CollapsedStatusBarFragment statusBarFragment = (CollapsedStatusBarFragment) fragment; statusBarFragment.initNotificationIconArea(mNotificationIconAreaController); PhoneStatusBarView oldStatusBarView = mStatusBarView; mStatusBarView = (PhoneStatusBarView) fragment.getView(); mStatusBarView.setBar(this); mStatusBarView.setPanel(mNotificationPanel); mStatusBarView.setScrimController(mScrimController); mStatusBarView.setBouncerShowing(mBouncerShowing); if (oldStatusBarView != null) { float fraction = oldStatusBarView.getExpansionFraction(); boolean expanded = oldStatusBarView.isExpanded(); mStatusBarView.panelExpansionChanged(fraction, expanded); } if (mHeadsUpAppearanceController != null) { // This view is being recreated, let's destroy the old one mHeadsUpAppearanceController.destroy(); Loading