Skip to content

Commit

Permalink
Apply Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
JolandaVerhoef authored and github-actions[bot] committed Nov 28, 2024
1 parent fd4d608 commit 7959170
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions wear/src/main/java/com/example/wear/snippets/tile/Tile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,25 @@ private const val RESOURCES_VERSION = "1"
class MyTileService : TileService() {

override fun onTileRequest(requestParams: RequestBuilders.TileRequest) =
Futures.immediateFuture(Tile.Builder()
.setResourcesVersion(RESOURCES_VERSION)
.setTileTimeline(
Timeline.fromLayoutElement(
Text.Builder(this, "Hello World!")
.setTypography(Typography.TYPOGRAPHY_BODY1)
.setColor(argb(0xFFFFFFFF.toInt()))
.build()))
.build())
Futures.immediateFuture(
Tile.Builder()
.setResourcesVersion(RESOURCES_VERSION)
.setTileTimeline(
Timeline.fromLayoutElement(
Text.Builder(this, "Hello World!")
.setTypography(Typography.TYPOGRAPHY_BODY1)
.setColor(argb(0xFFFFFFFF.toInt()))
.build()
)
)
.build()
)

override fun onTileResourcesRequest(requestParams: ResourcesRequest) =
Futures.immediateFuture(Resources.Builder()
.setVersion(RESOURCES_VERSION)
.build()
Futures.immediateFuture(
Resources.Builder()
.setVersion(RESOURCES_VERSION)
.build()
)

}
// [END android_wear_tile_mytileservice]
// [END android_wear_tile_mytileservice]

0 comments on commit 7959170

Please sign in to comment.