Remove unnecessary background-image

This commit is contained in:
advplyr 2022-05-07 20:19:49 -05:00
parent bc85e9bbfa
commit 7721afc116
3 changed files with 7 additions and 6 deletions

View file

@ -79,7 +79,7 @@ class AbMediaDescriptionAdapter constructor(private val controller: MediaControl
}
try {
Glide.with(context).applyDefaultRequestOptions(glideOptions)
Glide.with(playerNotificationService)
.asBitmap()
.load(urival)
.placeholder(R.drawable.icon)
@ -89,7 +89,7 @@ class AbMediaDescriptionAdapter constructor(private val controller: MediaControl
} catch (e: Exception) {
e.printStackTrace()
Glide.with(context).applyDefaultRequestOptions(glideOptions)
Glide.with(playerNotificationService)
.asBitmap()
.load(Uri.parse("android.resource://com.audiobookshelf.app/" + R.drawable.icon))
.submit(NOTIFICATION_LARGE_ICON_SIZE, NOTIFICATION_LARGE_ICON_SIZE)

View file

@ -17,10 +17,8 @@ data class MediaProgressSyncData(
var currentTime:Double // seconds
)
class MediaProgressSyncer(playerNotificationService:PlayerNotificationService, apiHandler: ApiHandler) {
class MediaProgressSyncer(val playerNotificationService:PlayerNotificationService, private val apiHandler: ApiHandler) {
private val tag = "MediaProgressSync"
private val playerNotificationService:PlayerNotificationService = playerNotificationService
private val apiHandler = apiHandler
private var listeningTimerTask: TimerTask? = null
var listeningTimerRunning:Boolean = false