Can't click the button on SnackBar inside fragment with data binding.
Here's java code:
final Snackbar snackBar = Snackbar.make(binding.layoutMain, error, Snackbar.LENGTH_LONG);
snackBar.setAction("TRY", new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
snackBar.show();
Edit: Connection Error is not a dialog.
UPDATE:
I tried setting the NestedScrollView's visibility to GONE just to test. Snackbar seems to work properly. Is it something to do with the layout?