unify progresss dialog

This commit is contained in:
B. Petersen
2019-01-14 12:04:54 +01:00
parent 127a1c0023
commit d30f9d1540
2 changed files with 10 additions and 5 deletions
@@ -275,9 +275,9 @@ public class ConversationListFragment extends Fragment
@Override
protected void onPreExecute() {
dialog = ProgressDialog.show(getActivity(),
getActivity().getString(R.string.one_moment),
getActivity().getString(R.string.one_moment),
true, false);
"",
getActivity().getString(R.string.one_moment),
true, false);
}
@Override
@@ -37,8 +37,13 @@ public abstract class SnackbarAsyncTask<Params>
@Override
protected void onPreExecute() {
if (this.showProgress) this.progressDialog = ProgressDialog.show(view.getContext(), "", "", true);
else this.progressDialog = null;
if (this.showProgress) {
this.progressDialog = ProgressDialog.show(view.getContext(),
"", view.getContext().getString(R.string.one_moment), true, false);
}
else {
this.progressDialog = null;
}
}
@SafeVarargs