Code example for ProgressDialog

Methods: cancel

0
	} 
 
	@Override 
	protected String doInBackground(String... params) {
		m_viewModel.updateMailbox();
		pdialog.cancel();
		return null; 
	} 
 
	@Override 
	protected void onPostExecute(String result) {
		m_viewModel.notifyMailboxChanged();
		m_viewModel.m_isLoadingInProgress = false;
	} 
}