Compare commits

...

3 Commits

Author SHA1 Message Date
x7z4w
8c5b252ca7 [fdroid] Release version 2025.10.09-3
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-10-09 11:19:27 +00:00
eisa01
2e91e64056 [android] Fix Metadata IntRange
Discovered while debugging issue #2078

Signed-off-by: eisa01 <eisa01@gmail.com>
2025-10-09 11:10:18 +00:00
Jean-Baptiste
d1bac84c7a [android] Fix crash on the place page
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
2025-10-09 11:10:18 +00:00
2 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
version: 2025.03.02-7-FDroid+25030207 version: 2025.10.09-3-FDroid+25100903

View File

@@ -11,6 +11,7 @@ import java.util.Map;
public class Metadata implements Parcelable public class Metadata implements Parcelable
{ {
// Values must correspond to the Metadata definition from indexer/feature_meta.hpp. // 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 public enum MetadataType
{ {
// Defined by classifier types now. // Defined by classifier types now.
@@ -71,7 +72,7 @@ public class Metadata implements Parcelable
FMD_PANORAMAX(52), FMD_PANORAMAX(52),
FMD_CHECK_DATE(53), FMD_CHECK_DATE(53),
FMD_CHECK_DATE_OPEN_HOURS(54), FMD_CHECK_DATE_OPEN_HOURS(54),
//FMD_BRANCH(55), FMD_BRANCH(55),
FMD_CHARGE_SOCKETS(56); FMD_CHARGE_SOCKETS(56);
private final int mMetaType; private final int mMetaType;
@@ -81,7 +82,7 @@ public class Metadata implements Parcelable
} }
@NonNull @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()) for (MetadataType type : values())
if (type.mMetaType == metaType) if (type.mMetaType == metaType)