From a18ae7d62e3a5de58adbbefb44e84d80e5c231fc Mon Sep 17 00:00:00 2001 From: Andrei Shpakovskiy <50966785+AndreiShpakovskiy@users.noreply.github.com> Date: Fri, 5 Aug 2022 03:55:22 +0300 Subject: [PATCH] Set default position of cursor at the end of query (#842) --- .../infinityforreddit/activities/SearchActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchActivity.java index ae5d097d..cf28ff85 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SearchActivity.java @@ -395,6 +395,7 @@ public class SearchActivity extends BaseActivity { if (query != null) { searchEditText.setText(query); + searchEditText.setSelection(query.length()); query = null; }