candybar icon indicating copy to clipboard operation
candybar copied to clipboard

If invocation of e-mail application fails, icons are recorded as having been requested anyway.

Open RokeJulianLockhart opened this issue 2 years ago • 2 comments

If invocation of the relevant e-mail activity when sending icon-requests fails, the icons are recorded as having been sent anyway, and the amount designated to be sent consequently reduced from the amount available to send.

This is undesirable because it unnecessarily reduces the amount of icon-requests and demonstrates Candybar as buggy.

Notified via this repository because "http://github.com/Donnnno/Arcticons/issues/1253#issuecomment-1179721188" suggested it.

RokeJulianLockhart avatar Jul 11 '22 19:07 RokeJulianLockhart

The control gets out of hand just before launching the email application (startActivity(intent)), so I'm still not sure if it's possible to fix this issue. Keeping this issue open, if someday I manage to fix this issue

sarsamurmu avatar Sep 08 '22 19:09 sarsamurmu

@sarsamurmu is using onActivityResult[1] an option here, at all? It can't track whether an email got sent but at the very least it would allow handling crashes and errors. There's also a poor soul on SO that found out that the send-email-activity would return RESULT_CANCELED[2] every single time, but someone suggested a workaround to at least detect whether the email client was opened.

[1] https://developer.android.com/training/basics/intents/result [2] https://stackoverflow.com/questions/17102578/detect-email-sent-or-not-in-onactivity-result

moertel avatar Oct 02 '22 10:10 moertel