Code example for Queue

Methods: add

0
     * Inserts a {@link AppMsg} to be displayed. 
     *  
     * @param AppMsg 
     */ 
    void add(AppMsg appMsg) {
        msgQueue.add(appMsg);
        if (inAnimation == null) {
            inAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_in);
        } 
        if (outAnimation == null) {
            outAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_out);
        } 
        displayMsg(); 
    } 
 
    /** 
     * Removes all {@link AppMsg} from the queue. 
     */ 
Experience pair programming with AI  Get Codota for Java