Since this subclass of AppCompatEditText initializes with the cursor not visible, it is not possible to support pasting into this edit text without a default value. This change allows for that functionality by removing the programmatic disabling of the cursor visibility when the view is inflated. As the library was, even setting this setCursorVisible(true) after this view was inflated and attached, the cursor would not show and the user not be able to long press and show the context menu.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply
[x] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
Proposed changes
Since this subclass of
AppCompatEditText
initializes with the cursor not visible, it is not possible to support pasting into this edit text without a default value. This change allows for that functionality by removing the programmatic disabling of the cursor visibility when the view is inflated. As the library was, even setting thissetCursorVisible(true)
after this view was inflated and attached, the cursor would not show and the user not be able to long press and show the context menu.Types of changes
What types of changes does your code introduce? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.