Closed Bug 1224523 Opened 9 years ago Closed 9 years ago

Deprecate API for button toasts

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sebastian, Assigned: sebastian)

References

Details

Attachments

(2 files)

Bug 1157526 replaced all button toasts with a Snackbar. Now we can deprecate the button-part of the API.

Additionally bug 1216051 is filed about deprecating the whole toast API (in discussion).
Bug 1224523 - (Part 1) Deprecate and limit access to button toast methods from within Java. r?mcomella
Attachment #8687269 - Flags: review?(michael.l.comella)
Bug 1224523 - (Part 2) Log deprecation error if button toast JS API is used. r?mcomella
Attachment #8687270 - Flags: review?(michael.l.comella)
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
Comment on attachment 8687269 [details]
MozReview Request: Bug 1224523 - (Part 1) Deprecate and limit access to button toast methods from within Java. r?mcomella

https://reviewboard.mozilla.org/r/25165/#review22693

::: mobile/android/base/GeckoApp.java:896
(Diff revision 1)
> +    private void showButtonToast(final String message, final String duration,

Add javadoc to explain an alternative to this method, as per [1](http://stackoverflow.com/a/9031854).

::: mobile/android/base/GeckoApp.java:905
(Diff revision 1)
> +                    ViewStub toastStub = (ViewStub) findViewById(R.id.toast_stub);

Nice optimization!
Attachment #8687269 - Flags: review?(michael.l.comella) → review+
Attachment #8687270 - Flags: review?(michael.l.comella) → review+
Comment on attachment 8687270 [details]
MozReview Request: Bug 1224523 - (Part 2) Log deprecation error if button toast JS API is used. r?mcomella

https://reviewboard.mozilla.org/r/25167/#review22695
I'll hold this back. It looks like we are going to replace all toasts in bug 1224521. Instead of just deprecating button toasts we could deprecate the whole API (More in bug 1224523).
(In reply to Sebastian Kaspari (:sebastian) from comment #5)
> (More in bug 1224523).

This should be bug 1216051.
We are going to deprecate the toast API and delegate calls to create snackbars (bug 1216051).
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: