~singpolyma/cheogram-android

640a725dd156944b43a6620d275c869ba7b72590 — Stephen Paul Weber 3 months ago ac4473a
Need to set value to something in the range

Or it crashes
1 files changed, 5 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Conversation.java
M src/main/java/eu/siacs/conversations/entities/Conversation.java => src/main/java/eu/siacs/conversations/entities/Conversation.java +5 -1
@@ 2465,7 2465,11 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                        if (max == null) max = options.get(options.size()-1);
                    }

                    if (field.getValues().size() > 0) binding.slider.setValue(Float.valueOf(field.getValue().getContent()));
                    if (field.getValues().size() > 0) {
                        binding.slider.setValue(Float.valueOf(field.getValue().getContent()));
                    } else {
                        binding.slider.setValue(min == null ? Float.MIN_VALUE : min);
                    }
                    binding.slider.setValueFrom(min == null ? Float.MIN_VALUE : min);
                    binding.slider.setValueTo(max == null ? Float.MAX_VALUE : max);
                    if ("xs:integer".equals(datatype) || "xs:int".equals(datatype) || "xs:long".equals(datatype) || "xs:short".equals(datatype) || "xs:byte".equals(datatype)) {