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:
@@ -614,7 +614,7 @@ public class KeyHandler implements DeviceKeyHandler {
|
|||||||
mSearchManagerService = ISearchManager.Stub.asInterface(ServiceManager.getService(Context.SEARCH_SERVICE));
|
mSearchManagerService = ISearchManager.Stub.asInterface(ServiceManager.getService(Context.SEARCH_SERVICE));
|
||||||
if (mSearchManagerService != null) {
|
if (mSearchManagerService != null) {
|
||||||
try {
|
try {
|
||||||
mSearchManagerService.launchAssist(new Bundle());
|
mSearchManagerService.launchAssist(mContext.getUserId(), new Bundle());
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user