Fix refreshing state not ending in widget
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user