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

Commit 0701ded0 authored by Danny Lin's avatar Danny Lin Committed by Michael Bestas
Browse files

core: Expose method to start assistant through Binder

This is necessary in order to start the default assistant app from other
system apps using platform APIs, which we need for implementing gestures
in a modular way.

Change-Id: Ic04d742acff07ce8b5b88a4296d01b1fe1036d9e
parent 15af5859
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -156,4 +156,9 @@ interface IStatusBarService
     * display.
     */
    void suppressAmbientDisplay(boolean suppress);

    /**
     * Starts the default assistant app.
     */
    void startAssist(in Bundle args);
}
+11 −0
Original line number Diff line number Diff line
@@ -1634,6 +1634,17 @@ public class StatusBarManagerService extends IStatusBarService.Stub implements D
        }
    }

    @Override
    public void startAssist(Bundle args) {
        enforceStatusBarService();
        if (mBar != null) {
            try {
                mBar.startAssist(args);
            } catch (RemoteException ex) {
            }
        }
    }

    public String[] getStatusBarIcons() {
        return mContext.getResources().getStringArray(R.array.config_statusBarIcons);
    }