mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators can detect devices by their services. Note: they should not rely on service uuids being available
16 lines
424 B
Java
16 lines
424 B
Java
package nodomain.freeyourgadget.gadgetbridge.util;
|
|
|
|
import android.os.ParcelUuid;
|
|
import android.os.Parcelable;
|
|
|
|
public class AndroidUtils {
|
|
public static ParcelUuid[] toParcelUUids(Parcelable[] uuids) {
|
|
if (uuids == null) {
|
|
return null;
|
|
}
|
|
ParcelUuid[] uuids2 = new ParcelUuid[uuids.length];
|
|
System.arraycopy(uuids, 0, uuids2, 0, uuids.length);
|
|
return uuids2;
|
|
}
|
|
}
|