mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 22:53:16 +00:00
Request keyboard for local notes
This commit is contained in:
parent
2d4f735761
commit
56ff1666f5
1 changed files with 9 additions and 2 deletions
|
@ -6716,11 +6716,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
final long id = getArguments().getLong("id");
|
final long id = getArguments().getLong("id");
|
||||||
final String notes = getArguments().getString("notes");
|
final String notes = getArguments().getString("notes");
|
||||||
|
|
||||||
View view = LayoutInflater.from(getContext()).inflate(R.layout.dialog_notes, null);
|
final Context context = getContext();
|
||||||
|
final InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
|
||||||
|
View view = LayoutInflater.from(context).inflate(R.layout.dialog_notes, null);
|
||||||
final EditText etNotes = view.findViewById(R.id.etNotes);
|
final EditText etNotes = view.findViewById(R.id.etNotes);
|
||||||
etNotes.setText(notes);
|
etNotes.setText(notes);
|
||||||
|
etNotes.selectAll();
|
||||||
|
|
||||||
return new AlertDialog.Builder(getContext())
|
etNotes.requestFocus();
|
||||||
|
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
||||||
|
|
||||||
|
return new AlertDialog.Builder(context)
|
||||||
.setView(view)
|
.setView(view)
|
||||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue