mukeshsolanki / android-otpview-pinview

A custom view to enter otp of different sizes used usually in cases of authentication.
MIT License
707 stars 207 forks source link

Support context menu (long press) events #91

Closed theBradfo closed 4 years ago

theBradfo commented 4 years ago

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 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

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.