Commit a64c460f authored by Thomas's avatar Thomas
Browse files

- Fix #1352 open keyboard in picker and make compose autocomplete case insensitive

parent a6e3eaa8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;

import androidx.annotation.NonNull;
@@ -83,6 +84,8 @@ public class UnifiedEmojiPicker {
                } else {
                    binding.searchLayout.setVisibility(View.VISIBLE);
                    binding.searchEmoji.requestFocus();
                    InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
                    imm.showSoftInput(binding.searchEmoji, InputMethodManager.SHOW_IMPLICIT);
                }
            });

+1 −1
Original line number Diff line number Diff line
@@ -1009,7 +1009,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
                                return;
                            }
                            for (Emoji emoji : emojisList) {
                                if (shortcode != null && emoji.shortcode.contains(shortcode)) {
                                if (shortcode != null && emoji.shortcode.toLowerCase().contains(shortcode.toLowerCase())) {
                                    emojisToDisplay.add(emoji);
                                    if (emojisToDisplay.size() >= 10) {
                                        break;