Fix ArrayStoreException (#15320)

Fixes #15313

Partially reverts #13967

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2023-07-28 10:01:36 +02:00 committed by Kai Kreuzer
parent e60446d305
commit e9c03a5161

View File

@ -47,7 +47,9 @@ public class BluetoothUtils {
*/
public static int[] toIntArray(byte[] value) {
int[] ret = new int[value.length];
System.arraycopy(value, 0, ret, 0, value.length);
for (int i = 0; i < value.length; i++) {
ret[i] = value[i];
}
return ret;
}