Loading core/java/com/android/internal/app/AssistUtils.java +15 −5 Original line number Diff line number Diff line Loading @@ -49,8 +49,10 @@ public class AssistUtils { public boolean showSessionForActiveService(Bundle args, int sourceFlags, IVoiceInteractionSessionShowCallback showCallback, IBinder activityToken) { try { return mVoiceInteractionManagerService.showSessionForActiveService(args, sourceFlags, showCallback, activityToken); if (mVoiceInteractionManagerService != null) { return mVoiceInteractionManagerService.showSessionForActiveService(args, sourceFlags, showCallback, activityToken); } } catch (RemoteException e) { Log.w(TAG, "Failed to call showSessionForActiveService", e); } Loading @@ -59,7 +61,9 @@ public class AssistUtils { public void launchVoiceAssistFromKeyguard() { try { if (mVoiceInteractionManagerService != null) { mVoiceInteractionManagerService.launchVoiceAssistFromKeyguard(); } } catch (RemoteException e) { Log.w(TAG, "Failed to call launchVoiceAssistFromKeyguard", e); } Loading Loading @@ -87,7 +91,11 @@ public class AssistUtils { public ComponentName getActiveServiceComponentName() { try { if (mVoiceInteractionManagerService != null) { return mVoiceInteractionManagerService.getActiveServiceComponentName(); } else { return null; } } catch (RemoteException e) { Log.w(TAG, "Failed to call getActiveServiceComponentName", e); return null; Loading @@ -106,7 +114,9 @@ public class AssistUtils { public void hideCurrentSession() { try { if (mVoiceInteractionManagerService != null) { mVoiceInteractionManagerService.hideCurrentSession(); } } catch (RemoteException e) { Log.w(TAG, "Failed to call hideCurrentSession", e); } Loading Loading
core/java/com/android/internal/app/AssistUtils.java +15 −5 Original line number Diff line number Diff line Loading @@ -49,8 +49,10 @@ public class AssistUtils { public boolean showSessionForActiveService(Bundle args, int sourceFlags, IVoiceInteractionSessionShowCallback showCallback, IBinder activityToken) { try { return mVoiceInteractionManagerService.showSessionForActiveService(args, sourceFlags, showCallback, activityToken); if (mVoiceInteractionManagerService != null) { return mVoiceInteractionManagerService.showSessionForActiveService(args, sourceFlags, showCallback, activityToken); } } catch (RemoteException e) { Log.w(TAG, "Failed to call showSessionForActiveService", e); } Loading @@ -59,7 +61,9 @@ public class AssistUtils { public void launchVoiceAssistFromKeyguard() { try { if (mVoiceInteractionManagerService != null) { mVoiceInteractionManagerService.launchVoiceAssistFromKeyguard(); } } catch (RemoteException e) { Log.w(TAG, "Failed to call launchVoiceAssistFromKeyguard", e); } Loading Loading @@ -87,7 +91,11 @@ public class AssistUtils { public ComponentName getActiveServiceComponentName() { try { if (mVoiceInteractionManagerService != null) { return mVoiceInteractionManagerService.getActiveServiceComponentName(); } else { return null; } } catch (RemoteException e) { Log.w(TAG, "Failed to call getActiveServiceComponentName", e); return null; Loading @@ -106,7 +114,9 @@ public class AssistUtils { public void hideCurrentSession() { try { if (mVoiceInteractionManagerService != null) { mVoiceInteractionManagerService.hideCurrentSession(); } } catch (RemoteException e) { Log.w(TAG, "Failed to call hideCurrentSession", e); } Loading