Move cursor to end of text field after select About preset.

This commit is contained in:
Greyson Parrelli
2021-01-23 18:58:38 -05:00
parent 1746869dc3
commit b3d5d7c33e

View File

@@ -202,6 +202,7 @@ public class EditAboutFragment extends Fragment implements ManageProfileActivity
private void onPresetSelected(@NonNull AboutPreset preset) {
onEmojiSelectedInternal(preset.getEmoji());
bodyView.setText(requireContext().getString(preset.getBodyRes()));
bodyView.setSelection(bodyView.length(), bodyView.length());
}
private final class PresetAdapter extends ListAdapter<AboutPreset, PresetViewHolder> {