Code example for LinkedList

Methods: poll

0
            mQueue.add(0, mCurrentToast);
        } 
    } 
 
    private void showNextInQueue() { 
        Toast t = mQueue.poll();
        if (t != null) {
            show(t, false);
        } 
    } 
 
    private Runnable mHideRunnable = new Runnable() {
        @Override 
        public void run() { 
            hide(false, ReasonHidden.TIMEOUT); 
        } 
    }; 
}