Skip to content

Commit bb5722e

Browse files
committed
Fix compile issue
1 parent 701504c commit bb5722e

File tree

1 file changed

+1
-13
lines changed
  • wearApp/src/main/java/dev/johnoreilly/confetti/wear/tile

1 file changed

+1
-13
lines changed

wearApp/src/main/java/dev/johnoreilly/confetti/wear/tile/TileSync.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ class TileSync(
2323
registry.dataClient
2424
.putDataItem(PutDataRequest.create("/tile_tracking_enabled")).await()
2525

26-
val myTilesList = listOf(
27-
CurrentSessionsTileService::class.java.name,
28-
)
29-
30-
val activeTiles = TileService.getActiveTilesAsync(context, executor).await()
31-
32-
for (tileName in myTilesList) {
33-
if (activeTiles.any { it.componentName.className == tileName }) {
34-
wearAppHelper.markTileAsInstalled(tileName)
35-
} else {
36-
wearAppHelper.markTileAsRemoved(tileName)
37-
}
38-
}
26+
wearAppHelper.updateInstalledTiles()
3927
}
4028
}

0 commit comments

Comments
 (0)