Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task does not finish if processVisibility == false #45

Open
Yulin777 opened this issue Nov 30, 2019 · 0 comments
Open

task does not finish if processVisibility == false #45

Yulin777 opened this issue Nov 30, 2019 · 0 comments

Comments

@Yulin777
Copy link

Yulin777 commented Nov 30, 2019

i think the problem is in BackgroundMail.class : 457:

       ` if (BackgroundMail.this.processVisibility) {
            this.progressDialog.dismiss();
            if (result) {
                if (!TextUtils.isEmpty(BackgroundMail.this.sendingMessageSuccess)) {
                    Toast.makeText(BackgroundMail.this.mContext, BackgroundMail.this.sendingMessageSuccess, 0).show();
                }

                if (BackgroundMail.this.onSuccessCallback != null) {
                    BackgroundMail.this.onSuccessCallback.onSuccess();
                }
            } else {
                if (!TextUtils.isEmpty(BackgroundMail.this.sendingMessageError)) {
                    Toast.makeText(BackgroundMail.this.mContext, BackgroundMail.this.sendingMessageError, 0).show();
                }

                if (BackgroundMail.this.onFailCallback != null) {
                    BackgroundMail.this.onFailCallback.onFail();
                }
            }
        }`

the result should be outside the first if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant