Files
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java
cpfeiffer 2f7eb9ef23 Some more improvements to discovery
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators
  can detect devices by their services.

Note: they should not rely on service uuids being available
2016-11-27 02:46:07 +01:00

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;
}
}