mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
igpsport: Use only positive integers as file id
This commit is contained in:
committed by
José Rebelo
parent
ea5777f657
commit
2d3d142ebe
+1
-1
@@ -559,7 +559,7 @@ public class IGPSportDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
TransactionBuilder builder = performInitialized("prepare upload gpx");
|
TransactionBuilder builder = performInitialized("prepare upload gpx");
|
||||||
|
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
int ran = random.nextInt();
|
int ran = random.nextInt() & Integer.MAX_VALUE;
|
||||||
GeneralFileOperation.general_file_operation.Builder fileOperationbuilder = GeneralFileOperation.general_file_operation.newBuilder();
|
GeneralFileOperation.general_file_operation.Builder fileOperationbuilder = GeneralFileOperation.general_file_operation.newBuilder();
|
||||||
fileOperationbuilder.setServiceType(Common.service_type_index.enum_SERVICE_TYPE_INDEX_FILE_OPERATION)
|
fileOperationbuilder.setServiceType(Common.service_type_index.enum_SERVICE_TYPE_INDEX_FILE_OPERATION)
|
||||||
.setOperateType(Common.SERVICE_OPERATE_TYPE.enum_SERVICE_OPERATE_TYPE_ADD)
|
.setOperateType(Common.SERVICE_OPERATE_TYPE.enum_SERVICE_OPERATE_TYPE_ADD)
|
||||||
|
|||||||
Reference in New Issue
Block a user