Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Decode notification logo in background thread. Set max bitmap size to 2048

Cette révision appartient à :
len 2016-10-16 15:02:55 +02:00
Parent 69baaac27e
révision a31c6ff875
2 fichiers modifiés avec 5 ajouts et 5 suppressions

Voir le fichier

@ -165,16 +165,16 @@ class LibraryUpdateService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (intent == null) return Service.START_NOT_STICKY
if (notificationBitmap == null) {
notificationBitmap = BitmapFactory.decodeResource(resources, R.mipmap.ic_launcher)
}
// Unsubscribe from any previous subscription if needed.
subscription?.unsubscribe()
// Update favorite manga. Destroy service when completed or in case of an error.
subscription = Observable
.defer {
if (notificationBitmap == null) {
notificationBitmap = BitmapFactory.decodeResource(resources, R.mipmap.ic_launcher)
}
val mangaList = getMangaToUpdate(intent)
// Update either chapter list or manga details.

Voir le fichier

@ -110,7 +110,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
setMenuVisibility(menuVisible)
maxBitmapSize = GLUtil.getMaxTextureSize()
maxBitmapSize = Math.min(2048, GLUtil.getMaxTextureSize())
left_chapter.setOnClickListener {
if (viewer != null) {