Closed igelgrun closed 7 years ago
Hi @stefan-nsk I guess this is not a bug xD The snack bar component requires a ViewGroup
instance. I'm closing this issue, sorry. If you want to avoid the downcasting you can use a library like butterknife so the casting is performed by the library and if the casting fails your app will crash.
My bad, the library accepts a view and in Snackbar:135
is going to find the view parent. We could change the code to accept View
instead of ViewGroup
as param. As this is not a major feature we will wait for a collaborator PR 😃 if you don't mind.
You are welcome: #171.
uooo thanks!
Expected behaviour
Actual behaviour
Steps to reproduce
Try to create
SnackbarOnDeniedPermissionListener
using static method of builder.Version of the library
4.1.0