summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Henigan <robert.henigan@livio.io>2021-01-26 11:04:12 -0500
committerGitHub <noreply@github.com>2021-01-26 11:04:12 -0500
commit7a30eff365eccb0e67edbd59d4e43b726667a4dc (patch)
tree31ede38098d04f666a267c1ee4974488ce15257e
parentb3599a54ede42ea25f0e08b30aaac56a520ac8b9 (diff)
downloadsdl_android-7a30eff365eccb0e67edbd59d4e43b726667a4dc.tar.gz
Apply suggestions from code review
Co-authored-by: Bilal Alsharifi <599206+bilal-alsharifi@users.noreply.github.com>
-rw-r--r--base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java b/base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java
index 8f52cf3de..fa1f65489 100644
--- a/base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java
+++ b/base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java
@@ -120,9 +120,7 @@ public class VideoStreamingParameters {
}
if (params.resolution != null) {
if (this.resolution == null) {
- this.resolution = new ImageResolution();
- resolution.setResolutionWidth(DEFAULT_WIDTH);
- resolution.setResolutionHeight(DEFAULT_HEIGHT);
+ this.resolution = new ImageResolution(DEFAULT_WIDTH, DEFAULT_HEIGHT);
}
if (params.resolution.getResolutionHeight() != null && params.resolution.getResolutionHeight() > 0) {
this.resolution.setResolutionHeight(params.resolution.getResolutionHeight());
@@ -158,9 +156,7 @@ public class VideoStreamingParameters {
if (resolution != null) {
if (this.resolution == null) {
- this.resolution = new ImageResolution();
- resolution.setResolutionWidth(DEFAULT_WIDTH);
- resolution.setResolutionHeight(DEFAULT_HEIGHT);
+ this.resolution = new ImageResolution(DEFAULT_WIDTH, DEFAULT_HEIGHT);
}
if (vehicleMake != null) {