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

Commit d9bd5fd5 authored by Danny Lin's avatar Danny Lin Committed by LuK1337
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 070dd601
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -226,4 +226,9 @@ interface IStatusBarService

    /** Unregisters a nearby media devices provider. */
    void unregisterNearbyMediaDevicesProvider(in INearbyMediaDevicesProvider provider);

    /**
     * Starts the default assistant app.
     */
    void startAssist(in Bundle args);
}
+11 −0
Original line number Diff line number Diff line
@@ -2162,6 +2162,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) {
            }
        }
    }

    /** @hide */
    public void passThroughShellCommand(String[] args, FileDescriptor fd) {
        enforceStatusBarOrShell();