~singpolyma/cheogram-android

a39da8cef7886ee97affc415efa21303d59836c4 — Stephen Paul Weber 1 year, 4 months ago a193a9c
Force immediate loading so that the button values don't repaint
1 files changed, 3 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 +3 -0
@@ 1861,6 1861,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                        public View getView(int position, View convertView, ViewGroup parent) {
                            Button v = (Button) super.getView(position, convertView, parent);
                            v.setOnClickListener((view) -> {
                                loading = true;
                                mValue.setContent(getItem(position).getValue());
                                execute();
                            });


@@ 1917,6 1918,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                        dialog.setOnShowListener(d -> SoftKeyboardUtils.showKeyboard(dialogBinding.inputEditText));
                        dialog.show();
                        View.OnClickListener clickListener = v -> {
                            loading = true;
                            String value = dialogBinding.inputEditText.getText().toString();
                            mValue.setContent(value);
                            SoftKeyboardUtils.hideSoftKeyboard(dialogBinding.inputEditText);


@@ 1963,6 1965,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl

                        binding.defaultButton.setText(defaultOption.toString());
                        binding.defaultButton.setOnClickListener((view) -> {
                            loading = true;
                            mValue.setContent(defaultOption.getValue());
                            execute();
                        });