Skip to content

Commit 8c18231

Browse files
author
Mike Burke
committed
Merge pull request #94 from hotfix/apt_bin_data_fix
Fixes #85. Forward calls to setAPTData to setBulkData and getAPTData to getBulkData Signed-off-by: Mike Burke <mike@livioconnect.com>
1 parent 5685840 commit 8c18231

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sdl_android_lib/src/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import com.smartdevicelink.protocol.enums.FunctionID;
66
import com.smartdevicelink.proxy.RPCNotification;
7-
import com.smartdevicelink.proxy.RPCStruct;
87

98
/**
109
* Binary data is in binary part of hybrid msg.
@@ -56,13 +55,9 @@ public OnAudioPassThru(Hashtable<String, Object> hash) {
5655
super(hash);
5756
}
5857
public void setAPTData(byte[] aptData) {
59-
if (aptData != null) {
60-
store.put(RPCStruct.KEY_BULK_DATA, aptData);
61-
} else {
62-
store.remove(RPCStruct.KEY_BULK_DATA);
63-
}
58+
setBulkData(aptData);
6459
}
6560
public byte[] getAPTData() {
66-
return (byte[]) store.get(RPCStruct.KEY_BULK_DATA);
61+
return getBulkData();
6762
}
6863
}

0 commit comments

Comments
 (0)