Project

General

Profile

Statistics
| Branch: | Revision:

library / src / main / java / org / distorted / library / message @ 7d151b69

Name Size
EffectListener.java 2.59 KB
EffectMessageSender.java 4.96 KB

Latest revisions

# Date Author Comment
7d151b69 09/14/2021 05:31 PM Leszek Koltunski

More debugs to the EffectMessageSender.

43eecb4c 09/14/2021 04:17 PM Leszek Koltunski

Firebase shows that we have a problem when an app is rapidly restarted, i.e. when is it paused and resumes within tens of milliseconds. Then sometimes the EffectMessageSender thread dies.

Attempt to limit this by synchronizing the whole 'start' and 'stop' methods, although I suspect this will still happen because the very methods are probably in such case called in the wrong order.

188b3dc0 09/09/2021 11:56 PM Leszek Koltunski

Some more debugs for the case when the UI is blocked.

19e77994 05/07/2020 09:30 PM Leszek Koltunski

Fix for a crash when exiting an app:

Activity.onPause() -> MessageSender.stopSending sets mThis to null, then a last message gets sent and a crash in newMessage().

Fix this by

1) making the Message inner class static (so that we can create a new one without a reference to mThis)...

b7209ffe 05/04/2020 04:01 PM Leszek Koltunski

Simplify a bit the place where we got a crash once.

20dbec0e 05/11/2019 10:33 PM Leszek Koltunski

Simplify the way applications can get notifications when an effect finishes.

Now, instead of the 'DistortedEffects.(de)registerForNotifications()' 2 APIs, we call a single 'Effect.notifyWhenFinished()'.

9559b088 05/07/2019 02:05 PM Leszek Koltunski

Correct the EffectMessageSender.

46b572b5 05/03/2019 10:46 PM Leszek Koltunski

Correct the Legal notice.

7602a827 05/02/2019 10:41 PM Leszek Koltunski

Rename all the classes that are not exported to application to 'Internal'

142c7236 04/07/2019 06:22 PM Leszek Koltunski

Many things.

1) make the Dynamic.setDuration() able to be called AFTER the Dynamic has already been run. (and rename it to 'makeRunNowFor()' )
2) remove the automatic removal of zero Effects from EffectQueues.
3) adjust several Apps to cope with 2)
4) add post-rotation to Rubik (still not finished)

View revisions

Also available in: Atom