[android] Fix Metadata IntRange

Discovered while debugging issue #2078

Signed-off-by: eisa01 <eisa01@gmail.com>
This commit is contained in:
eisa01
2025-10-08 19:51:56 +02:00
parent a74ae0fa3a
commit e5b6d882bf

View File

@@ -11,6 +11,7 @@ import java.util.Map;
public class Metadata implements Parcelable
{
// Values must correspond to the Metadata definition from indexer/feature_meta.hpp.
// Remember to also update IntRange below to match the max ID
public enum MetadataType
{
// Defined by classifier types now.
@@ -81,7 +82,7 @@ public class Metadata implements Parcelable
}
@NonNull
public static MetadataType fromInt(@IntRange(from = 1, to = 49) int metaType)
public static MetadataType fromInt(@IntRange(from = 1, to = 56) int metaType)
{
for (MetadataType type : values())
if (type.mMetaType == metaType)