Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85062ac9 authored by Sal Savage's avatar Sal Savage Committed by Gerrit Code Review
Browse files

Merge "Return null when a handle is *not* valid"

parents 00877469 822efdc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -99,7 +99,7 @@ public class AvrcpCoverArtManager {
        }
        }


        public String getHandleUuid(String handle) {
        public String getHandleUuid(String handle) {
            if (isValidImageHandle(handle)) return null;
            if (!isValidImageHandle(handle)) return null;
            String newUuid = UUID.randomUUID().toString();
            String newUuid = UUID.randomUUID().toString();
            String existingUuid = mUuids.putIfAbsent(handle, newUuid);
            String existingUuid = mUuids.putIfAbsent(handle, newUuid);
            if (existingUuid != null) return existingUuid;
            if (existingUuid != null) return existingUuid;