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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {
+5 −0
Original line number Diff line number Diff line
<?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
+1 −0
Original line number Diff line number Diff line
@@ -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" />