Skip to content

Commit 4f0e459

Browse files
committed
Remove time left debug status
1 parent 356869f commit 4f0e459

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

app/src/main/kotlin/com/fredapp/wbooks/ui/ReaderViewModel.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ class ReaderViewModel(
330330
data class ReadingEta(
331331
val chapterMs: Long,
332332
val bookMs: Long,
333-
val status: String,
334333
)
335334

336335
/**
@@ -354,21 +353,18 @@ class ReaderViewModel(
354353
metrics,
355354
pos,
356355
BOOTSTRAP_MS_PER_WORD,
357-
"Estimating - learning pace 0/20",
358356
)
359357
!pace.isReady -> computeEta(
360358
state.doc,
361359
metrics,
362360
pos,
363361
pace.msPerWord,
364-
"Estimating - learning pace ${pace.sampleCount}/20",
365362
)
366363
else -> computeEta(
367364
state.doc,
368365
metrics,
369366
pos,
370367
pace.msPerWord,
371-
"Personalized - ${pace.sampleCount} samples",
372368
)
373369
}
374370
}
@@ -390,7 +386,6 @@ class ReaderViewModel(
390386
metrics: DocumentMetrics,
391387
position: BookPosition,
392388
msPerWord: Double,
393-
status: String,
394389
): ReadingEta? {
395390
if (doc.chapters.isEmpty() || msPerWord <= 0.0) return null
396391
val totalWords = metrics.totalWords
@@ -419,7 +414,6 @@ class ReaderViewModel(
419414
return ReadingEta(
420415
chapterMs = (wordsRemainingInChapter * msPerWord).toLong(),
421416
bookMs = (wordsRemainingInBook * msPerWord).toLong(),
422-
status = status,
423417
)
424418
}
425419

@@ -444,7 +438,6 @@ class ReaderViewModel(
444438
return ReadingEta(
445439
chapterMs = (wordsRemainingInChapter * msPerWord).toLong(),
446440
bookMs = (wordsRemainingInBook * msPerWord).toLong(),
447-
status = "Speed reading - ${wpm.coerceIn(ReaderSettings.WPM_RANGE)} wpm",
448441
)
449442
}
450443

app/src/main/kotlin/com/fredapp/wbooks/ui/secondary/SecondaryScreen.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,6 @@ fun SecondaryScreen(
317317
text = "~ ${formatDurationMs(e.bookMs)} in book",
318318
style = MaterialTheme.typography.body2,
319319
)
320-
Text(
321-
text = e.status,
322-
style = MaterialTheme.typography.caption2,
323-
color = MaterialTheme.colors.onSurface.copy(alpha = 0.55f),
324-
textAlign = TextAlign.Center,
325-
)
326320
}
327321
}
328322
}

0 commit comments

Comments
 (0)