public void cancelShareLinkDialog ( boolean animateClose ) { if ( shareDlg_ != null && shareDlg_ . isShowing ( ) ) { if ( animateClose ) { // Cancel the dialog with animation shareDlg_ . cancel ( ) ; } else { // Dismiss the dialog immediately shareDlg_ . dismiss ( ) ; } } }
Dismiss the share dialog if showing . Should be called on activity stopping .