New non-stacking ToastDisplayer implementation

A rehash of PR #27.

This adds an interface for ToastDisplayer.

It deprecates Toaster, but enhances it by upgrading it to use the new interface (without breaking API).

It adds two implementations of ToastDisplayer:
- a regular one, like Toaster, but with the ability to cancel all preceding toasts
- a non-stacking one, which will only show the last toast

In this non stacking one, collection is redundant, will remove.
On 16 Jun 2014 19:46, "Antonio Bertucci" <notifications@github.com> wrote:

> In
> src/main/java/com/novoda/notils/logger/toast/NonStackingToastDisplayer.java:
>
> > @@ -0,0 +1,110 @@
> > +package com.novoda.notils.logger.toast;
> > +
> > +import android.content.Context;
> > +import android.widget.Toast;
> > +
> > +import com.novoda.notils.logger.simple.Log;
> > +
> > +import java.util.ArrayList;
> > +import java.util.Collection;
> > +
> > +public class NonStackingToastDisplayer implements ToastDisplayer {
> > +
> > +    private final Context context;
> > +    private final Collection<Toast> toasts;
>
> Sorry @ataulm <https://github.com/ataulm> but I cannot get the sense of
> this collection. Can you please elaborate on that?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/novoda/NoTils/pull/29/files#r13823147>.
>