diff options
author | Joey Grover <joeygrover@gmail.com> | 2020-06-26 10:34:20 -0400 |
---|---|---|
committer | Joey Grover <joeygrover@gmail.com> | 2020-06-26 10:34:20 -0400 |
commit | 99d5a47698d22de4d46d97fd50efff7743c78d29 (patch) | |
tree | 56dd9688196b983fc479ecc7f02cbba259418baf /android/sdl_android | |
parent | ecb3b3828baeee1764bb0a04047e34208dc87473 (diff) | |
download | sdl_android-99d5a47698d22de4d46d97fd50efff7743c78d29.tar.gz |
Remove unused return value from tryVideoStream
Diffstat (limited to 'android/sdl_android')
-rw-r--r-- | android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java index f3b04492a..927559e25 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java @@ -238,18 +238,18 @@ public class LifecycleManager extends BaseLifecycleManager { * mode (i.e. without any negotiation) then an instance of VideoStreamingParams is * returned. If the service was not opened then null is returned. */ - private VideoStreamingParameters tryStartVideoStream(boolean isEncrypted, VideoStreamingParameters parameters) { + private void tryStartVideoStream(boolean isEncrypted, VideoStreamingParameters parameters) { if (session == null) { DebugTool.logWarning("SdlSession is not created yet."); - return null; + return; } if (getProtocolVersion() != null && getProtocolVersion().getMajor() >= 5 && !systemCapabilityManager.isCapabilitySupported(SystemCapabilityType.VIDEO_STREAMING)) { DebugTool.logWarning("Module doesn't support video streaming."); - return null; + return; } if (parameters == null) { DebugTool.logWarning("Video parameters were not supplied."); - return null; + return; } @@ -264,15 +264,6 @@ public class LifecycleManager extends BaseLifecycleManager { session.startService(SessionType.NAV, session.getSessionId(), isEncrypted); } - - if (videoServiceStartResponse) { - if (getProtocolVersion() != null && getProtocolVersion().getMajor() < 5) { //Versions 1-4 do not support streaming parameter negotiations - session.setAcceptedVideoParams(parameters); - } - return session.getAcceptedVideoParams(); - } - - return null; } private void addVideoServiceListener() { |