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

Commit e68f2199 authored by Shuming Hao's avatar Shuming Hao Committed by Android (Google) Code Review
Browse files

Merge "Implement toggle notification panel for new buttons in taskbar"

parents 4e59b196 a549d1d2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -155,5 +155,10 @@ interface ISystemUiProxy {
     */
    void onImeSwitcherPressed() = 49;

    // Next id = 50
    /**
     * Notifies to toggle notification panel.
     */
    void toggleNotificationPanel() = 50;

    // Next id = 51
}
+7 −0
Original line number Diff line number Diff line
@@ -404,6 +404,13 @@ public class OverviewProxyService extends CurrentUserTracker implements
                    () -> mCommandQueue.handleSystemKey(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN));
        }

        @Override
        public void toggleNotificationPanel() {
            verifyCallerAndClearCallingIdentityPostMain("toggleNotificationPanel", () ->
                    mStatusBarOptionalLazy.get().ifPresent(StatusBar::togglePanel));
        }


        private boolean verifyCaller(String reason) {
            final int callerId = Binder.getCallingUserHandle().getIdentifier();
            if (callerId != mCurrentBoundedUserId) {
+4 −0
Original line number Diff line number Diff line
@@ -434,6 +434,10 @@ public class StatusBar extends CoreStartable implements
        mCommandQueueCallbacks.animateCollapsePanels(flags, force);
    }

    /** */
    public void togglePanel() {
        mCommandQueueCallbacks.togglePanel();
    }
    /**
     * The {@link StatusBarState} of the status bar.
     */