I was taking a look into the Tile documentation an...
# compose-wear
t
I was taking a look into the Tile documentation and it says that you can add some time for refreshing the tile using the
setFreshnessIntervalMillis
when overriding
onTileRequest
. I'm using the Horologist's
CoroutinesTileService
where
onTileRequest
is final so I can't change when it should refresh. Is there some option for it?
y
Oops, that's a bug. I'll expose that. Thanks
👍🏽 1
In CoroutinesTileService, onTileRequest is final because it calls the suspending form tileRequest where you can set it.
If you happen to be using the SingleTileLayoutRenderer API, then it isn't exposed, which I'll fix. But won't be until Monday, but you can work around by implementing TileLayoutRenderer instead.
t
It's fine, I'll implement a Worker and then I can refresh the tile after it's done. It's the proper solution for my case, I was just trying the lazy way instead of the proper one hahaha
y
Thanks for flagging it
This is fixed in 0.0.25
t
Cool! Thanks Yuri 🙂