Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import android.system.Os;
import android.util.Log;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
Expand Down Expand Up @@ -662,6 +663,12 @@ private void onModelRunStopped() {
mSendButton.setImageResource(R.drawable.baseline_send_24);
mSendButton.setOnClickListener(
view -> {
try {
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
} catch (Exception e) {
ETLogging.getInstance().log("Keyboard dismissal error: " + e.getMessage());
}
addSelectedImagesToChatThread(mSelectedImageUri);
String finalPrompt;
String rawPrompt = mEditTextMessage.getText().toString();
Expand Down
Loading