Show loading/error for images in catalogue grid view. Update support lib

This commit is contained in:
len
2017-02-04 19:07:06 +01:00
parent add2ca0b8f
commit fe413d52d6
7 changed files with 90 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
@file:Suppress("NOTHING_TO_INLINE")
package eu.kanade.tachiyomi.util
import android.graphics.Color
@@ -28,4 +30,16 @@ inline fun View.snack(message: String, length: Int = Snackbar.LENGTH_LONG, f: Sn
snack.f()
snack.show()
return snack
}
}
inline fun View.visible() {
visibility = View.VISIBLE
}
inline fun View.invisible() {
visibility = View.INVISIBLE
}
inline fun View.gone() {
visibility = View.GONE
}