summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Alsharifi <bilal.alsharifi@gmail.com>2021-01-14 10:52:02 -0500
committerBilal Alsharifi <bilal.alsharifi@gmail.com>2021-01-14 10:52:02 -0500
commitb9737a13891d91f78a39a82aa44dd6e1532bd559 (patch)
treec1883f59bba38095d3760616c6b1cd71e860a8db
parentf4c0ffb40ad73564df294d8f4caa8deaf1d3da23 (diff)
downloadsdl_android-b9737a13891d91f78a39a82aa44dd6e1532bd559.tar.gz
Add initial delay
-rw-r--r--android/sdl_android/src/androidTest/java/com/smartdevicelink/test/streaming/video/SdlRemoteDisplayTest.java2
-rw-r--r--android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/streaming/video/SdlRemoteDisplayTest.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/streaming/video/SdlRemoteDisplayTest.java
index e66f910c0..e669ccdc4 100644
--- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/streaming/video/SdlRemoteDisplayTest.java
+++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/streaming/video/SdlRemoteDisplayTest.java
@@ -101,8 +101,8 @@ public class SdlRemoteDisplayTest extends TestCase {
@Override
protected void onCreate(Bundle savedInstanceState) {
- setContentView(new RelativeLayout(getContext()));
super.onCreate(savedInstanceState);
+ setContentView(new RelativeLayout(getContext()));
}
diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java b/android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java
index c5fccf545..a8238323b 100644
--- a/android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java
+++ b/android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java
@@ -93,7 +93,7 @@ public abstract class SdlRemoteDisplay extends Presentation {
}
protected void startRefreshTask() {
- refreshTaskScheduledFuture = executor.scheduleAtFixedRate(mStartRefreshTaskCallback, 0, REFRESH_RATE_MS, TimeUnit.MILLISECONDS);
+ refreshTaskScheduledFuture = executor.scheduleAtFixedRate(mStartRefreshTaskCallback, REFRESH_RATE_MS, REFRESH_RATE_MS, TimeUnit.MILLISECONDS);
}
protected void stopRefreshTask() {