0.129 P1/P2: no repeat asks for missing pictures; High Scores, Arcade and Settings pages scroll and keep Back
- A show with no picture is asked for once per 6 hours, not up to 4 times per programme shown - Picture requests are counted only when a request is made - Top 10 and a game's settings sheet close with Back (their own window swallowed it) - Arcade pages' footer says Back goes to Play Games - Arcade menu items wrap at larger text sizes; High Scores drops the Played column on narrow screens - Family home, a person's page, PIN and Account scroll; Down at the foot of a Settings section stays put Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,16 @@ class ProgrammeArtworkTest {
|
||||
assertEquals(1, fetches)
|
||||
}
|
||||
|
||||
@Test fun aShowWithNoPictureIsNotAskedForAgainAndAgain() {
|
||||
val cache = cache()
|
||||
var fetches = 0
|
||||
repeat(5) { i -> assertNull(loadArtwork(cache, "ep$i", "show") { fetches++; null }) }
|
||||
// The first programme tries its four places; the rest of the show's programmes ask nothing.
|
||||
assertEquals(4, fetches)
|
||||
assertTrue(cache.knownMissing("show"))
|
||||
assertFalse(cache.knownMissing("show", System.currentTimeMillis() + MISSING_RETRY_MS + 1))
|
||||
}
|
||||
|
||||
@Test fun theCacheStaysBounded() {
|
||||
val dir = folder.newFolder(); val cache = ArtworkCache(dir)
|
||||
repeat(160) { cache.put("k$it", png) }
|
||||
|
||||
Reference in New Issue
Block a user