Skip to content

Commit 4cb8e19

Browse files
Merge branch 'develop' into bugfix/issue_1756
# Conflicts: # base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceUtilities.java
2 parents 4593a88 + 0bda034 commit 4cb8e19

15 files changed

Lines changed: 29 additions & 16 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "generator/rpc_spec"]
22
path = generator/rpc_spec
33
url = https://github.com/smartdevicelink/rpc_spec.git
4-
branch = version/8.0.0
4+
branch = master

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@
4444

4545
- [[SDL 0236] Update mismatch in TireStatus structure](https://github.com/smartdevicelink/sdl_java_suite/issues/1089)
4646

47-
- [Choices not saved as preloaded if some choices fail](https://github.com/smartdevicelink/sdl_java_suite/issues/1715)
47+
- [Choices not saved as preloaded if some choices fail](https://github.com/smartdevicelink/sdl_java_suite/issues/1715)
48+
49+
- [MenuManager should print warning when trying to send AddSubMenu with voice commands](https://github.com/smartdevicelink/sdl_java_suite/issues/1760)
50+
51+
- [Spelling/ Grammar Updates](https://github.com/smartdevicelink/sdl_java_suite/issues/1754)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
RC_5.3.0
1+
5.3.0

android/sdl_android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GROUP=com.smartdevicelink
22
POM_ARTIFACT_ID=sdl_android
3-
VERSION_NAME=RC_5.3.0
3+
VERSION_NAME=5.3.0
44

55
POM_NAME=sdl_android
66
POM_PACKAGING=aar

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ private synchronized boolean bluetoothConnect(BluetoothDevice device) {
24542454
/**
24552455
* Set the connection establishment status of the particular device
24562456
*
2457-
* @param address address of the device in quesiton
2457+
* @param address address of the device in question
24582458
* @param hasSDLConnected true if a connection has been established, false if not
24592459
*/
24602460
protected void setSDLConnectedStatus(String address, boolean hasSDLConnected) {

base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceUtilities.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import com.smartdevicelink.proxy.rpc.enums.MenuLayout;
5353
import com.smartdevicelink.proxy.rpc.enums.TextFieldName;
5454
import com.smartdevicelink.proxy.rpc.listeners.OnMultipleRequestListener;
55+
import com.smartdevicelink.util.DebugTool;
5556
import com.smartdevicelink.util.Version;
5657

5758
import java.util.ArrayList;
@@ -65,6 +66,7 @@
6566
* Created by Bilal Alsharifi on 1/25/21.
6667
*/
6768
class MenuReplaceUtilities {
69+
private static final String TAG = "MenuReplaceUtilities";
6870
private static int menuId = 0;
6971

7072
static int getNextMenuId() {
@@ -294,6 +296,10 @@ static AddSubMenu subMenuCommandForMenuCell(ISdl internalInterface, MenuCell cel
294296
boolean shouldCellIncludeSecondaryImage = cell.getSecondaryArtwork() != null && cell.getSecondaryArtwork().getImageRPC() != null && shouldCellIncludeSecondaryImageFromCell(cell, fileManager, windowCapability);
295297
Image secondaryIcon = (shouldCellIncludeSecondaryImage ? cell.getSecondaryArtwork().getImageRPC() : null);
296298

299+
if (cell.getVoiceCommands() != null && !cell.getVoiceCommands().isEmpty()) {
300+
DebugTool.logWarning(TAG, "Setting voice commands for submenu cells is not supported. The voice commands will not be set.");
301+
}
302+
297303
MenuLayout submenuLayout;
298304
List<MenuLayout> availableMenuLayouts = windowCapability != null ? windowCapability.getMenuLayoutsAvailable() : null;
299305
if (cell.getSubMenuLayout() != null && availableMenuLayouts != null && availableMenuLayouts.contains(cell.getSubMenuLayout())) {
@@ -438,4 +444,4 @@ public void onResponse(int correlationId, RPCResponse response) {
438444
}
439445
});
440446
}
441-
}
447+
}

base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* <td>endTime</td>
7373
* <td>StartTime</td>
7474
* <td> EndTime can be provided for "COUNTUP" and "COUNTDOWN"; to be used to calculate any visual progress bar (if not provided, this feature is ignored)
75-
* If endTime is greater then startTime for COUNTDOWN or less than startTime for COUNTUP, then the request will return an INVALID_DATA.
75+
* If endTime is greater than startTime for COUNTDOWN or less than startTime for COUNTUP, then the request will return an INVALID_DATA.
7676
* endTime will be ignored for "RESUME", and "CLEAR"
7777
* endTime can be sent for "PAUSE", in which case it will update the paused endTime</td>
7878
* <td>N</td>

base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public List<SoftButton> getSoftButtons() {
534534
}
535535

536536
/**
537-
* Sets the the Soft buttons defined by the App
537+
* Sets the Soft buttons defined by the App
538538
*
539539
* @param softButtons a List value representing the Soft buttons defined by the
540540
* App

base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import java.util.Hashtable;
4040

4141
/**
42-
* Struct that indicates the a SystemCapabilityType and houses different structs to describe particular capabilities
42+
* Struct that indicates the SystemCapabilityType and houses different structs to describe particular capabilities
4343
*/
4444

4545
public class SystemCapability extends RPCStruct {

base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,26 @@ protected void processControlService(ProtocolMessage msg) {
240240
// Assemble a security query payload header for our response
241241
SecurityQueryPayload responseHeader = new SecurityQueryPayload();
242242

243+
byte[] returnBytes;
243244
if (iNumBytes == null || iNumBytes <= 0) {
244245
DebugTool.logError(TAG, "Internal Error processing control service");
245246

246247
responseHeader.setQueryID(SecurityQueryID.SEND_INTERNAL_ERROR);
247248
responseHeader.setQueryType(SecurityQueryType.NOTIFICATION);
248249
responseHeader.setCorrelationID(msg.getCorrID());
249250
responseHeader.setJsonSize(0);
251+
returnBytes = new byte[12];
250252
} else {
251253
responseHeader.setQueryID(SecurityQueryID.SEND_HANDSHAKE_DATA);
252254
responseHeader.setQueryType(SecurityQueryType.RESPONSE);
253255
responseHeader.setCorrelationID(msg.getCorrID());
254256
responseHeader.setJsonSize(0);
257+
returnBytes = new byte[iNumBytes + 12];
258+
System.arraycopy(dataToRead, 0, returnBytes, 12, iNumBytes);
255259
}
256260

257-
byte[] returnBytes = new byte[iNumBytes + 12];
261+
258262
System.arraycopy(responseHeader.assembleHeaderBytes(), 0, returnBytes, 0, 12);
259-
System.arraycopy(dataToRead, 0, returnBytes, 12, iNumBytes);
260263

261264
ProtocolMessage protocolMessage = new ProtocolMessage();
262265
protocolMessage.setSessionType(SessionType.CONTROL);

0 commit comments

Comments
 (0)