From 7959170b6dbe562ef393ccdd60cf1977b6fd753f Mon Sep 17 00:00:00 2001 From: JolandaVerhoef Date: Thu, 28 Nov 2024 11:59:49 +0000 Subject: [PATCH] Apply Spotless --- .../com/example/wear/snippets/tile/Tile.kt | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/wear/src/main/java/com/example/wear/snippets/tile/Tile.kt b/wear/src/main/java/com/example/wear/snippets/tile/Tile.kt index 74a29483..58cbaa75 100644 --- a/wear/src/main/java/com/example/wear/snippets/tile/Tile.kt +++ b/wear/src/main/java/com/example/wear/snippets/tile/Tile.kt @@ -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] \ No newline at end of file +// [END android_wear_tile_mytileservice]