Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

refactor: make sure updateAppWidget is not called twice at the same time

Jonathan Klee requested to merge 0000-t-thread-safe-onreceive into main

Description

Make sure updateAppWidget is not called twice at the same time

Screenshots

Technical details

Sentry has weird NullPointException & ArrayIndexOutOfBoundsException.

Since a lot of stuffs are done in the BroadcastReceiver.onReceived() callback and it could be called twice quite fast, let's make sure it is a least thread safe.

Tests

Issues

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Merge request reports

Loading