funkwhale-app-android/app/src/main/java/audio/funkwhale/ffa
Hugh Daschbach f65e29af39 Do not create unnecessary Picasso objects.
Address "java.lang.IllegalStateException: Too many receivers"
exceptions.  (See Issue #145).  Each new Picasso object registers its
own NetworkBroadcastReceiver.  Worse, we create a new Picasso object
each time we transform an AlbumCover image.  So do not create
unnecessary Picasso objects.

Rather than depend on receiving a Context object when called to load
an cover art, fetch the Application context as returned from FFA.get()
at singleton construction time.  The Application context is long
lived.

This has an additional advantage.  Not generation new Picasso objects
for each CoverArt image avoids holding a reference to an object that
cannot, later, be garbage collected.
2023-11-07 08:33:36 +00:00
..
activities Fixes form peer review 2023-09-28 17:32:53 +02:00
adapters Fix a few regressions with the new bottom sheet 2023-09-18 17:35:26 +02:00
fragments Fix buffering progress bar display 2023-10-02 20:30:09 +02:00
koin Resolve warning: ExoDatabaseProvider deprecated. 2022-12-06 09:35:32 +01:00
model Transcode at 320kbps when bandwidth limitation is enabled 2023-04-23 17:50:32 +00:00
playback Fix buffering progress bar display 2023-10-02 20:30:09 +02:00
repositories Sort Favourites by time 2023-01-13 12:52:52 +01:00
utils Do not create unnecessary Picasso objects. 2023-11-07 08:33:36 +00:00
viewmodel Fix buffering progress bar display 2023-10-02 20:30:09 +02:00
views Fixes form peer review 2023-09-28 17:32:53 +02:00
FFA.kt RequentBus: replace deprecated implementation. 2022-12-06 09:35:32 +01:00