mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-05 02:25:45 +02:00
Remove unnecessary background-image
This commit is contained in:
parent
bc85e9bbfa
commit
7721afc116
3 changed files with 7 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue