Fix refreshing state not ending in widget

This commit is contained in:
Prem Nirmal
2026-02-18 12:11:49 +00:00
parent bd26dee3a8
commit 08d04665cd
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ android {
ByteArrayOutputStream().use { stdout ->
exec {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine("powershell", "-command", "git tag --sort=-committerdate | Select-Object -first 10 | Select-Object -last 1")
commandLine("powershell", "-command", "git tag --sort=-committerdate | Select-Object -first 15 | Select-Object -last 1")
} else {
commandLine("sh", "-c", "git tag --sort=-committerdate | head -15 | tail -1")
commandLine("sh", "-c", "git tag --sort=-committerdate | head -20 | tail -1")
}
standardOutput = stdout
}
@@ -210,6 +210,7 @@ class StocksProvider constructor(
saveLastFetched(lastFetched)
scheduleUpdate()
}
appPreferences.setRefreshing(false)
widgetDataProvider.broadcastUpdateAllWidgets()
FetchResult.success(quoteMap.values.filter { tickerSet.contains(it.symbol) }.toList())
}