manager: allow absent versionCode, version, author for module prop

This commit is contained in:
tiann
2023-01-05 15:27:33 +08:00
parent edf7c9a8b7
commit 06cc677278

View File

@@ -63,9 +63,9 @@ class ModuleViewModel : ViewModel() {
ModuleInfo( ModuleInfo(
obj.getString("id"), obj.getString("id"),
obj.getString("name"), obj.getString("name"),
obj.getString("author"), obj.optString("author", "Unknown"),
obj.getString("version"), obj.optString("version", "Unknown"),
obj.getInt("versionCode"), obj.optInt("versionCode", 0),
obj.getString("description"), obj.getString("description"),
obj.getBoolean("enabled"), obj.getBoolean("enabled"),
obj.getBoolean("update"), obj.getBoolean("update"),