mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Merge branch 'master' of gitlab.futo.org:videostreaming/grayjay
This commit is contained in:
@@ -41,7 +41,7 @@ abstract class JSPager<T> : IPager<T> {
|
||||
}
|
||||
|
||||
override fun hasMorePages(): Boolean {
|
||||
return _hasMorePages;
|
||||
return _hasMorePages && !pager.isClosed;
|
||||
}
|
||||
|
||||
override fun nextPage() {
|
||||
|
||||
@@ -41,8 +41,8 @@ class TargetTapLoaderView @JvmOverloads constructor(
|
||||
private val particles = mutableListOf<Particle>()
|
||||
|
||||
private val textPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {
|
||||
color = Color.WHITE
|
||||
textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 18f, resources.displayMetrics)
|
||||
color = Color.argb(0.7f, 1f, 1f, 1f)
|
||||
textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 12f, resources.displayMetrics)
|
||||
textAlign = Paint.Align.LEFT
|
||||
setShadowLayer(4f, 0f, 0f, Color.BLACK)
|
||||
typeface = Typeface.DEFAULT_BOLD
|
||||
@@ -236,8 +236,8 @@ class TargetTapLoaderView @JvmOverloads constructor(
|
||||
|
||||
if (isPlaying) {
|
||||
val margin = 24f
|
||||
val scoreTxt = "Score $score"
|
||||
val speedTxt = "Speed ${"%.2f".format(spawnRate)}/s"
|
||||
val scoreTxt = "Score: $score"
|
||||
val speedTxt = "Speed: ${"%.2f".format(spawnRate)}/s"
|
||||
val maxWidth = width - margin
|
||||
val needRight = max(textPaint.measureText(scoreTxt), textPaint.measureText(speedTxt)) > maxWidth
|
||||
|
||||
|
||||
Submodule app/src/stable/assets/sources/dailymotion updated: d115430011...850eb8122d
Submodule app/src/stable/assets/sources/odysee updated: d37268abe2...736c6b953a
Submodule app/src/stable/assets/sources/twitch updated: f526ce1b76...8de3ab18f5
Submodule app/src/stable/assets/sources/youtube updated: 98255d1773...2b724f21a7
Submodule app/src/unstable/assets/sources/dailymotion updated: d115430011...850eb8122d
Submodule app/src/unstable/assets/sources/odysee updated: d37268abe2...736c6b953a
Submodule app/src/unstable/assets/sources/twitch updated: f526ce1b76...8de3ab18f5
Submodule app/src/unstable/assets/sources/youtube updated: 98255d1773...2b724f21a7
Reference in New Issue
Block a user