fix HistoryBrowser crash

This commit is contained in:
Milos Kozak 2020-06-04 14:34:40 +02:00
parent fbb15cac70
commit 064389d066

View file

@ -338,6 +338,7 @@ class HistoryBrowseActivity : NoSplashAppCompatActivity() {
} }
// finally enforce drawing of graphs in UI thread // finally enforce drawing of graphs in UI thread
graphData.performUpdate() graphData.performUpdate()
if (!bgOnly)
for (g in 0 until secondaryGraphs.size) { for (g in 0 until secondaryGraphs.size) {
secondaryGraphsLabel[g].text = overviewMenus.enabledTypes(g + 1) secondaryGraphsLabel[g].text = overviewMenus.enabledTypes(g + 1)
secondaryGraphs[g].visibility = (!bgOnly && ( secondaryGraphs[g].visibility = (!bgOnly && (