summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal <bilal@Bilals-MBP.localdomain>2018-05-23 11:56:31 -0400
committerBilal <bilal@Bilals-MBP.localdomain>2018-05-23 11:56:31 -0400
commitd9ea6ac7185bfc54d58279a3455313f51360bfd9 (patch)
tree7d0575364852a420be07466cc000c6deb7a18197
parent31ac2dd40a01282adbd5e89cf386bfc5559944a9 (diff)
downloadsdl_android-feature/issue_595.tar.gz
Updates per Joey’s commentsfeature/issue_595
-rw-r--r--sdl_android/build.gradle1
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java13
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java2
3 files changed, 13 insertions, 3 deletions
diff --git a/sdl_android/build.gradle b/sdl_android/build.gradle
index 7904206a9..bdce1c53d 100644
--- a/sdl_android/build.gradle
+++ b/sdl_android/build.gradle
@@ -42,6 +42,7 @@ dependencies {
})
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.9.0'
+ implementation 'com.android.support:support-annotations:27.1.1'
}
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java
index da6d27d9b..445594fb6 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java
@@ -1,5 +1,7 @@
package com.smartdevicelink.proxy.rpc;
+import android.support.annotation.NonNull;
+
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCNotification;
@@ -25,7 +27,7 @@ import java.util.Hashtable;
* <td>Describes the hour, minute and second values used for the current media clock timer.</td>
* <td>Y</td>
* <td></td>
- * <td>SmartDeviceLink 4.7</td>
+ * <td>SmartDeviceLink 4.6</td>
* </tr>
* </table>
*/
@@ -47,6 +49,13 @@ public class OnSeekMediaClockTimer extends RPCNotification {
super(hash);
}
/**
+ *Constructs a newly allocated OnSeekMediaClockTimer object
+ */
+ public OnSeekMediaClockTimer(@NonNull StartTime seekTime) {
+ this();
+ setSeekTime(seekTime);
+ }
+ /**
* Gets the StartTime object representing the current media clock timer
*
* @return seekTime -a StartTime object specifying hour, minute, second values
@@ -59,7 +68,7 @@ public class OnSeekMediaClockTimer extends RPCNotification {
*
* @param seekTime -a StartTime object with specifying hour, minute, second values
*/
- public void setSeekTime( StartTime seekTime ) {
+ public void setSeekTime( @NonNull StartTime seekTime ) {
setParameters(KEY_SEEK_TIME, seekTime);
}
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
index 29951c773..b24905a79 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
@@ -57,7 +57,7 @@ import java.util.Hashtable;
* <td>Defines if seek media clock timer functionality will be available.</td>
* <td>N</td>
* <td>If omitted, the value is set to false. The value is retained until the next SetMediaClockTimer is sent.</td>
- * <td>SmartDeviceLink 4.7</td>
+ * <td>SmartDeviceLink 4.6</td>
* </tr>
* <tr>
*