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

Duration not working #49

Open
SulemanIcon opened this issue Dec 25, 2021 · 2 comments
Open

Duration not working #49

SulemanIcon opened this issue Dec 25, 2021 · 2 comments

Comments

@SulemanIcon
Copy link

LONG DRATION not working,..
as well custom duration not working...

@Fahriar-Ahammed
Copy link

Same problem with me.

@bohdanbezp
Copy link

bohdanbezp commented Jan 3, 2022

The issue seems to be that MotionToast uses a native Android toast mechanism and recent API levels don't respect non-standard toast durations by hiding the toast after Toast.LENGTH_SHORT period by default. I have added the ability to use LONG_DURATION within my fork's branch here - https://github.com/Simplx-dev/MotionToast/tree/toast_duration_fix

It does not accept arbitrary durations, however. Only MotionToast.LONG_DURATION and MotionToast.SHORT_DURATION which are translated to Toast.LENGTH_LONG and Toast.LENGTH_SHORT respectively are supported.

Most likely I'll create a pull request here with the changes soon if my previous PR gets merged.

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

No branches or pull requests

3 participants