Hi everyone, again!

I just realized I didn't write any mail to the list about the snackbar
migration that has happened in Firefox 45. We replaced most of our toasts
[1] with snackbars [2]. See meta bug 1157526 [3].

For Java developers:
SnackbarHelper can be used to create snackbars. Use this class over the one
in the support library if you want to use our styles and have the snackbar
be dismissed if the user clicks outside.

For JavaScript developers:
Snackbars.jsm can be used to show snackbars:
https://developer.mozilla.org/Add-ons/Firefox_for_Android/API/Snackbars.jsm

Note that calls to NativeWindow.toast are now automatically transformed and
delegated to Snackbars.jsm.

Big thanks to Alex Johnston who helped writing the patches and documenting
the APIs.

Best,
Sebastian

[1] https://www.youtube.com/watch?v=D8ZBNnpvGl8
[2] https://www.google.com/design/spec/components/snackbars-toasts.html
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1157526
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to