yesidlazaro / GmailBackground

a small library to send a email in background withou user interaction
158 stars 70 forks source link

onSuccessCallback.onSuccess() not being called when .withProcessVisibility(false) #28

Open lindevs opened 7 years ago

lindevs commented 7 years ago

I want remove ProgressDialog when sending email, so I add to builder .withProcessVisibility(false). Now ProgressDialog dialog not showing but onSuccess() not being called.

 .withOnSuccessCallback(new BackgroundMail.OnSuccessCallback() {
     @Override
     public void onSuccess() {
            Log.i("MY_PROG", "message sended");
     }
})
ogasimli commented 7 years ago

Please merge this fix commit. I have the same issue.

luongvo commented 7 years ago

@ogasimli While waiting for the author merge this fixing PR on this issue, you could check out my fork repo instead https://github.com/luongvo/GmailBackground It's the same to this lib but has some bugs fixing and features

ogasimli commented 7 years ago

great. thank you very much @luongvo!