Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3416,8 +3416,9 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump Log.d(TAG, "Updating panel sysui state flags: fullyExpanded=" + isFullyExpanded() + " inQs=" + mQsController.getExpanded()); } boolean isPanelVisible = mCentralSurfaces != null && mCentralSurfaces.isPanelExpanded(); mSysUiState .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE, getExpandedFraction() > 0) .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE, isPanelVisible) .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED, isFullyExpanded() && !mQsController.getExpanded()) .setFlag(SYSUI_STATE_QUICK_SETTINGS_EXPANDED, Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +9 −4 Original line number Diff line number Diff line Loading @@ -1511,14 +1511,15 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { boolean tracking = event.getTracking(); dispatchPanelExpansionForKeyguardDismiss(fraction, tracking); if (getShadeViewController() != null) { getShadeViewController().updateSystemUiStateFlags(); } if (fraction == 0 || fraction == 1) { if (getNavigationBarView() != null) { getNavigationBarView().onStatusBarPanelStateChanged(); } if (getShadeViewController() != null) { // Needed to update SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED and // SYSUI_STATE_QUICK_SETTINGS_EXPANDED getShadeViewController().updateSystemUiStateFlags(); } } } Loading @@ -1526,6 +1527,10 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { void onShadeExpansionFullyChanged(Boolean isExpanded) { if (mPanelExpanded != isExpanded) { mPanelExpanded = isExpanded; if (getShadeViewController() != null) { // Needed to update SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE getShadeViewController().updateSystemUiStateFlags(); } if (isExpanded && mStatusBarStateController.getState() != StatusBarState.KEYGUARD) { if (DEBUG) { Log.v(TAG, "clearing notification effects from Height"); Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3416,8 +3416,9 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump Log.d(TAG, "Updating panel sysui state flags: fullyExpanded=" + isFullyExpanded() + " inQs=" + mQsController.getExpanded()); } boolean isPanelVisible = mCentralSurfaces != null && mCentralSurfaces.isPanelExpanded(); mSysUiState .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE, getExpandedFraction() > 0) .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE, isPanelVisible) .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED, isFullyExpanded() && !mQsController.getExpanded()) .setFlag(SYSUI_STATE_QUICK_SETTINGS_EXPANDED, Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +9 −4 Original line number Diff line number Diff line Loading @@ -1511,14 +1511,15 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { boolean tracking = event.getTracking(); dispatchPanelExpansionForKeyguardDismiss(fraction, tracking); if (getShadeViewController() != null) { getShadeViewController().updateSystemUiStateFlags(); } if (fraction == 0 || fraction == 1) { if (getNavigationBarView() != null) { getNavigationBarView().onStatusBarPanelStateChanged(); } if (getShadeViewController() != null) { // Needed to update SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED and // SYSUI_STATE_QUICK_SETTINGS_EXPANDED getShadeViewController().updateSystemUiStateFlags(); } } } Loading @@ -1526,6 +1527,10 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { void onShadeExpansionFullyChanged(Boolean isExpanded) { if (mPanelExpanded != isExpanded) { mPanelExpanded = isExpanded; if (getShadeViewController() != null) { // Needed to update SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE getShadeViewController().updateSystemUiStateFlags(); } if (isExpanded && mStatusBarStateController.getState() != StatusBarState.KEYGUARD) { if (DEBUG) { Log.v(TAG, "clearing notification effects from Height"); Loading