Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 084231f7 authored by shamim-emon's avatar shamim-emon
Browse files

In TokenCompleteTextView.currentCompletionText() return trimmed String

parent 6fa15e0a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ public abstract class TokenCompleteTextView<T> extends AppCompatAutoCompleteText
        Editable editable = getText();
        Range currentRange = getCurrentCandidateTokenRange();

        String result = TextUtils.substring(editable, currentRange.start, currentRange.end);
        String result = TextUtils.substring(editable, currentRange.start, currentRange.end).trim();
        Log.d(TAG, "Current completion text: " + result);
        return result;
    }