fix poll max chars

pull/946/head
Thomas 1 year ago
parent f11a5c544e
commit 12c4e0465e

@ -169,8 +169,8 @@ public class Instance implements Serializable {
public int min_expiration; public int min_expiration;
@SerializedName("max_options") @SerializedName("max_options")
public int max_options = 4; public int max_options = 4;
@SerializedName("max_option_chars") @SerializedName("max_characters_per_option")
public int max_option_chars = 25; public int max_option_chars = 50;
@SerializedName("max_expiration") @SerializedName("max_expiration")
public int max_expiration; public int max_expiration;
} }

@ -319,7 +319,7 @@ public class FragmentMastodonDirectMessage extends Fragment {
ComposePollBinding composePollBinding = ComposePollBinding.inflate(LayoutInflater.from(requireActivity()), new LinearLayout(requireActivity()), false); ComposePollBinding composePollBinding = ComposePollBinding.inflate(LayoutInflater.from(requireActivity()), new LinearLayout(requireActivity()), false);
alertPoll.setView(composePollBinding.getRoot()); alertPoll.setView(composePollBinding.getRoot());
int max_entry = 4; int max_entry = 4;
int max_length = 25; int max_length = 50;
final int[] pollCountItem = {2}; final int[] pollCountItem = {2};
if (instanceInfo != null && instanceInfo.configuration != null && instanceInfo.configuration.pollsConf != null) { if (instanceInfo != null && instanceInfo.configuration != null && instanceInfo.configuration.pollsConf != null) {

Loading…
Cancel
Save