Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add clipboard cleared toast #825

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codokie
Copy link
Contributor

@codokie codokie commented Jun 1, 2024

Now that #752 and #679 have been merged, I think it would be a good idea to show a toast as an indication that the "clear clipboard" toolbar key has been pressed.
toast

@codokie
Copy link
Contributor Author

codokie commented Jun 8, 2024

FYI the fake toast visibility is not set to GONE by the view's handler if the keyboard is hidden before the message is handled.
Consider adding the following block to KeyboardSwitcher.hideWIndow()

if (mFakeToastView.getVisibility() == View.VISIBLE) {
    if (mFakeToastView.getHandler() != null)
        mFakeToastView.getHandler().removeCallbacksAndMessages(null);
    mFakeToastView.setVisibility(View.GONE);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant