fix poll max chars

This commit is contained in:
Thomas 2023-08-21 16:40:59 +02:00
parent f11a5c544e
commit 12c4e0465e
2 changed files with 3 additions and 3 deletions

View file

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

View file

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