mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
unify progresss dialog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user