public void SetMessageResource(int resId) { if (mProgressFragment.IsVisible) { mProgressFragment.Dismiss(); mProgressFragment = null; } mProgressFragment = ProgressDialogFragment.NewInstance(resId); }
void CloseProgressDialog() { if (progressDialog != null) { progressDialog.Dismiss(); progressDialog = null; } }
private void CloseProgressDialog() { if (progressDialogFragment != null) { progressDialogFragment.Dismiss(); progressDialogFragment = null; } }
internal static bool DismissLoading() { if (_progressDialog == null) { return(false); } _progressDialog.Dismiss(); _progressDialog = null; return(true); }
protected override void OnPostExecute([AllowNull] string result) { var storagePath = Android.OS.Environment.ExternalStorageDirectory.Path; var filePath = System.IO.Path.Combine(storagePath, $"{fileName}.jpg"); if (progressDialog != null) { progressDialog.Dismiss(); progressDialog = null; } imageView.SetImageDrawable(Drawable.CreateFromPath(filePath)); }