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

Commit 2ca9b626 authored by Danny Lin's avatar Danny Lin Committed by Rashed Abdel-Tawab
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 59b14ef3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -158,4 +158,9 @@ interface IStatusBarService
     * Used to block or unblock usage of gestural navigation
     */
    void setBlockedGesturalNavigation(boolean blocked);

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