You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am displaying crouton using the following code. At first run of the application the Crouton appears. But if I hit back button and reopen the application from launcher or recent list Crouton doesn't appear.
Thanks for the response. Sorry for the late reply. I was able to make it work by holding a reference to the displayed crouton and cancel it in onPause method of the activity. I was also able to achieve the desired behavior using Crouton.clearCroutonForActivity(this). Also when I was looking to add documentation I found Important! on the project page itself.
Calling Crouton.cancelAllCroutons(); also results in desired behavior.
Which will do you recommend ?
Also I experimented with different duration for configuration. This issue is occurring only when the duration is set to infinite.
Both get the job done. Nonetheless if at some point in the future multiple Croutons might be supported, cancelAllCroutons() might remove more Croutons than you wanted to be removed.
I am displaying crouton using the following code. At first run of the application the Crouton appears. But if I hit back button and reopen the application from launcher or recent list Crouton doesn't appear.
}
The text was updated successfully, but these errors were encountered: