~singpolyma/cheogram-android

d7f8b80dcd239389b31df845f17a7dfe86139358 — Stephen Paul Weber 1 year, 9 months ago e7617e6
Synthesize default option for custom value in button grid
1 files changed, 4 insertions(+), 0 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 +4 -0
@@ 1946,6 1946,10 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                            break;
                        }
                    }
                    if (defaultOption == null && !mValue.getContent().equals("")) {
                        // Synthesize default option for custom value
                        defaultOption = new Option(mValue.getContent(), mValue.getContent());
                    }
                    if (defaultOption == null) {
                        binding.defaultButton.setVisibility(View.GONE);
                    } else {