Example #1
0
        internal static bool ShowLoading(Context context, string message)
        {
            ((Activity)context).RunOnUiThread(() => {
                _progressDialog = new ProgressDialogFragment();
                _progressDialog.Initialize(context, message, string.Empty);
                _progressDialog.Show();
            });

            return(true);
        }
Example #2
0
        internal static bool DismissLoading()
        {
            if (_progressDialog == null)
            {
                return(false);
            }

            _progressDialog.Dismiss();
            _progressDialog = null;
            return(true);
        }