We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since getActiveTilesAsync became available, our guidance should be updated to use it, instead of using the information provided by onTileAddEvent and onTileRemoveEvent.
Suggestion:
markTileAsInstalled
markTileAsRemoved
public suspend fun updateInstalledTiles() { val activeTiles = TileService.getActiveTilesAsync(context, executor).await() surfacesInfoDataStore.updateData { info -> info.copy { tiles.clear() for (activeTileIdentifier in activeTiles) { tiles.add(tileInfo { timestamp = System.currentTimeMillis().toProtoTimestamp() name = activeTileIdentifier.componentName.className }) } } } }
updateInstalledTiles
onTileAddEvent
onTileRemoveEvent
The text was updated successfully, but these errors were encountered:
@yschimke @garanj please review.
Sorry, something went wrong.
Looks good!!
No branches or pull requests
Since getActiveTilesAsync became available, our guidance should be updated to use it, instead of using the information provided by onTileAddEvent and onTileRemoveEvent.
Suggestion:
markTileAsInstalled
andmarkTileAsRemoved
functions;updateInstalledTiles
inonTileAddEvent
andonTileRemoveEvent
.The text was updated successfully, but these errors were encountered: