Commit 951c9223 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Folder: Always show cursor when focus is changed on folder's title EditText

This helps in noticing the cursor's position in the current part of the title being edited. Also keep cursor's color as colorPrimary.

Bug: [1]

References:
- [1] e/backlog#1207



Test: Rebuild and install the package with this patch and notice that cursor is now visible with a color of colorPrimary
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent e3afd08d
......@@ -1094,6 +1094,7 @@ public class LauncherActivity extends AppCompatActivity implements
if (!hasFocus) {
hideKeyboard(v);
}
mFolderTitleInput.setCursorVisible(true);
});
mFolderTitleInput.setOnEditorActionListener((textView, actionId, keyEvent) -> {
if (actionId == EditorInfo.IME_ACTION_DONE) {
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<size android:width="2dp"/>
<solid android:color="@color/colorPrimary" />
</shape>
\ No newline at end of file
......@@ -61,6 +61,7 @@
android:paddingBottom="16dp"
android:text="@string/untitled"
android:textAlignment="center"
android:textCursorDrawable="@drawable/folder_title_text_cursor"
android:textColor="@android:color/white"
android:textSize="18sp" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment