GmailBackground icon indicating copy to clipboard operation
GmailBackground copied to clipboard

task does not finish if processVisibility == false

Open Yulin777 opened this issue 5 years ago • 0 comments

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

Yulin777 avatar Nov 30 '19 14:11 Yulin777