Skip to content

Commit bbdc793

Browse files
authored
Merge pull request #642 from smartdevicelink/bugfix/issue_641
bugfix / issue 641
2 parents 5961c0e + 03f2ea1 commit bbdc793

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6271,11 +6271,6 @@ public void onNotified(RPCNotification notification) {
62716271
}
62726272
}
62736273
});
6274-
6275-
VideoStreamingCapability capability = (VideoStreamingCapability)_systemCapabilityManager.getCapability(SystemCapabilityType.VIDEO_STREAMING);
6276-
if(capability != null && capability.getIsHapticSpatialDataSupported()){
6277-
hapticManager = new HapticInterfaceManager(iSdl);
6278-
}
62796274
}
62806275

62816276
public void startVideoStreaming(Class<? extends SdlRemoteDisplay> remoteDisplayClass, VideoStreamingParameters parameters, boolean encrypted){
@@ -6284,6 +6279,10 @@ public void startVideoStreaming(Class<? extends SdlRemoteDisplay> remoteDisplayC
62846279
Log.e(TAG, "Error starting video service");
62856280
return;
62866281
}
6282+
VideoStreamingCapability capability = (VideoStreamingCapability)_systemCapabilityManager.getCapability(SystemCapabilityType.VIDEO_STREAMING);
6283+
if(capability != null && capability.getIsHapticSpatialDataSupported()){
6284+
hapticManager = new HapticInterfaceManager(internalInterface);
6285+
}
62876286
this.remoteDisplayClass = remoteDisplayClass;
62886287
try {
62896288
encoder.init(context,streamListener,parameters);

0 commit comments

Comments
 (0)