Project

General

Profile

Statistics
| Branch: | Revision:

library / src / main / java / org / distorted / library / message @ d23592bb

# Date Author Comment
3a54358a 07/15/2022 01:45 AM Leszek Koltunski

license

c38f3d33 10/15/2021 01:07 PM Leszek Koltunski

Correction

9ef86c9f 09/15/2021 10:37 AM Leszek Koltunski

On second thought, come back to Vector. The problem: before we had the potentially blocking function 'effectFinished' inside our synchronized block.

2f40484b 09/15/2021 10:33 AM Leszek Koltunski

Improve EffectMessageSender: ArrayList with explicit locking in place of a Vector.

c337dd1c 09/14/2021 11:55 PM Leszek Koltunski

1) add missing call to BlockController.onPause() / onResume() to the Tutorial activity
2) rearrange BlockController's error reporting to make the case where the MessageSender thread has died separate
3) in such case, resurrect the thread
4) simplify and harden the EffectMessageSender

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)

ed06301f 11/21/2018 11:09 AM Leszek Koltunski

Move EffectMessageSender to the 'message' package (duh!)

6ba8be09 06/27/2017 11:10 AM Leszek Koltunski

Javadoc.

15aa7d94 06/08/2017 01:53 PM Leszek Koltunski

Progress with support for Effect classes.

fe82a979 06/07/2017 05:18 PM Leszek Koltunski

Progress with support for Effect classes.

310e14fb 06/06/2017 11:49 PM Leszek Koltunski

Some progress with Effect classes.

Big mess - nothing compiles now; classes moved around.

cacc63de 12/15/2016 11:37 PM Leszek Koltunski

Fix Lint warnings, correct a lot of comments, adjust EffectListener interface.

e8c81a8e 06/22/2016 11:21 AM Leszek Koltunski

Cleanup, consistent variable names, minor details.

6613266b 06/22/2016 12:12 AM Leszek Koltunski

Major: the MessageSender thread used to be running all the time in a tight loop!!

568b29d8 06/16/2016 12:44 AM Leszek Koltunski

Major push towards simplifying DistortedObject's public API.
All MATRIX effects are using the new API - the 'DataND' marker interfaces.

e458a4ba 06/15/2016 12:40 PM Leszek Koltunski

1. new package 'message'
2. Rename the 'Grid' classes to match