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

Commit 6dca005e authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Ensure SysUI gets VIS callback when session's over" into tm-qpr-dev

parents a6160ee0 cabd5d55
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@

    /**
     * Called when a voice session window is shown/hidden.
     * Caution that there could be duplicated visibility change callbacks, it's up to the listener
     * to dedup those events.
     */
    void onVoiceSessionWindowVisibilityChanged(boolean visible);

+3 −0
Original line number Diff line number Diff line
@@ -880,5 +880,8 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne
    @Override
    public void onSessionHidden(VoiceInteractionSessionConnection connection) {
        mServiceStub.onSessionHidden();
        // Notifies visibility change here can cause duplicate events, it is added to make sure
        // client always get the callback even if session is unexpectedly closed.
        mServiceStub.setSessionWindowVisible(connection.mToken, false);
    }
}