internal static bool ShowLoading(Context context, string message) { ((Activity)context).RunOnUiThread(() => { _progressDialog = new ProgressDialogFragment(); _progressDialog.Initialize(context, message, string.Empty); _progressDialog.Show(); }); return(true); }
internal static bool DismissLoading() { if (_progressDialog == null) { return(false); } _progressDialog.Dismiss(); _progressDialog = null; return(true); }