funkwhale-app-android/app/src/main/java/audio/funkwhale/ffa/utils
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
..
AppContext.kt #7: Add Koin as dependency injection library 2021-08-09 04:50:46 +00:00
Bottleneck.kt Custom cache layer for cover art which ignores (pre-signed URL) query 2023-01-10 10:00:41 +00:00
BottomSheetIneractable.kt Improve player bottom sheet, in particular fling support 2023-09-18 17:35:26 +02:00
Bus.kt Fix bottom sheet being hidden in certain conditions 2023-09-18 20:18:52 +02:00
CoverArt.kt Do not create unnecessary Picasso objects. 2023-11-07 08:33:36 +00:00
Extensions.kt Improve player bottom sheet, in particular fling support 2023-09-18 17:35:26 +02:00
FFACache.kt Upgrade to Kotlin 1.7.0 2022-08-26 12:06:41 +00:00
FuelResult.kt Fix existing linting problems 2021-09-09 09:56:15 +02:00
OAuth.kt LoginActivity: startActivityForResult deprecated. 2022-12-06 09:35:33 +01:00
RefreshError.kt Upgrading Android Gradle Plugin 2021-08-22 09:48:36 +02:00
Userinfo.kt Upgrading Android Gradle Plugin 2021-08-22 09:48:36 +02:00
Util.kt Minor adjustments to get rid of deprecation warnings 2021-08-27 13:28:23 +02:00
ViewBindings.kt Improve player bottom sheet, in particular fling support 2023-09-18 17:35:26 +02:00