From 56851bd34461a3ba02d705de9607a5fed20278ad Mon Sep 17 00:00:00 2001 From: Dybios Date: Sat, 12 Sep 2020 23:09:47 +0200 Subject: [PATCH] msm8953-common: MotoActions: Adapt launchAssist method for R Due to the API change for SearchManager to generalize handle launching Assistant on both Phones and TVs alike. https://android.googlesource.com/platform/frameworks/base/+/25b0f41e84f815375cb00e09d73f9b44e1fd99b5 Signed-off-by: Dybios --- MotoActions/src/com/moto/actions/KeyHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotoActions/src/com/moto/actions/KeyHandler.java b/MotoActions/src/com/moto/actions/KeyHandler.java index ee807c3..8cca7e9 100644 --- a/MotoActions/src/com/moto/actions/KeyHandler.java +++ b/MotoActions/src/com/moto/actions/KeyHandler.java @@ -614,7 +614,7 @@ public class KeyHandler implements DeviceKeyHandler { mSearchManagerService = ISearchManager.Stub.asInterface(ServiceManager.getService(Context.SEARCH_SERVICE)); if (mSearchManagerService != null) { try { - mSearchManagerService.launchAssist(new Bundle()); + mSearchManagerService.launchAssist(mContext.getUserId(), new Bundle()); } catch (RemoteException e) { } }