Code example for Toast

Methods: cancel

0
//        mUrlBarAutoShowManager = new UrlBarAutoShowManager(this); 
    } 
 
    private void cancelStopToast() { 
        if (mStopToast != null) {
            mStopToast.cancel();
            mStopToast = null;
        } 
    } 
 
    // lifecycle 
 
    public void onPause() { 
        if (isCustomViewShowing()) { 
            onHideCustomView(); 
        } 
        cancelStopToast(); 
        mActivityPaused = true;
    } 
 
    public void onResume() {