mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Compare commits
1 Commits
v2025.12.1
...
x7z4w-patc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89bcc9894d |
@@ -88,7 +88,7 @@ public class Metadata implements Parcelable
|
||||
if (type.mMetaType == metaType)
|
||||
return type;
|
||||
|
||||
throw new IllegalArgumentException("Illegal metaType: " + metaType);
|
||||
return -1;
|
||||
}
|
||||
|
||||
public int toInt()
|
||||
@@ -102,6 +102,9 @@ public class Metadata implements Parcelable
|
||||
public void addMetadata(int metaType, String metaValue)
|
||||
{
|
||||
final MetadataType type = MetadataType.fromInt(metaType);
|
||||
if (type == -1)
|
||||
return;
|
||||
|
||||
mMetadataMap.put(type, metaValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user