Why setting Snackbar.LENGTH_LONG and Snackbar.LENGTH_SHORT return the same duration of Snackbar?

Viewed 26

I tried to switch between LENGTH_LONG and _LENGHT_SHORT using below code:

                    int duration = Snackbar.LENGTH_SHORT;

                    Snackbar
                            .make(binding.coordinatorLayout, message, duration)
                            .show();

And then I time it in both scenarios. Both are about 3s which is the LENGTH_LONG duration.

Anyone knows why I cannot change the duration of the snackbar?

0 Answers
Related