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.
  25b0f41e84

Signed-off-by: Dybios <dibyajyoti.samal@gmail.com>
This commit is contained in:
Dybios
2020-09-12 23:09:47 +02:00
committed by Jorge Lucas
parent 3746c2f486
commit 56851bd344

View File

@@ -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) {
}
}