Skip to content

Commit 818a19b

Browse files
committed
Spotless
1 parent 9e26d5a commit 818a19b

File tree

8 files changed

+34
-17
lines changed

8 files changed

+34
-17
lines changed

core/testing/src/main/java/com/android/developers/testing/repository/FakeWatchFaceInstallationRepository.kt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2025 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.android.developers.testing.repository
217

318
import android.graphics.Bitmap
@@ -65,4 +80,4 @@ class FakeWatchFaceInstallationRepository : WatchFaceInstallationRepository {
6580
public fun setWatchAsConnected() {
6681
_connectedWatch.value = watch
6782
}
68-
}
83+
}

core/theme/src/main/res/drawable/squiggle_full.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?xml version="1.0" encoding="utf-8"?><!--
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
23
Copyright 2025 The Android Open Source Project
34
45
Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +14,6 @@
1314
See the License for the specific language governing permissions and
1415
limitations under the License.
1516
-->
16-
<!-- The squiggle but cropped to the viewport. -->
1717
<vector xmlns:android="http://schemas.android.com/apk/res/android"
1818
android:width="1425dp"
1919
android:height="822dp"

core/xr/src/main/java/com/android/developers/androidify/xr/MainPanelWorkaround.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ fun MainPanelWorkaround() {
3737
session?.scene?.mainPanelEntity?.setEnabled(false)
3838
}
3939
}
40-
}
40+
}

feature/creation/src/test/kotlin/com/android/developers/androidify/creation/CreationViewModelTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CreationViewModelTest {
5252
private val imageGenerationRepository = FakeImageGenerationRepository()
5353

5454
private val fakeUri = Uri.parse("test.jpeg")
55+
5556
@Before
5657
fun setup() {
5758
viewModel = CreationViewModel(
@@ -62,7 +63,6 @@ class CreationViewModelTest {
6263
FakeDropImageFactory(),
6364
context = RuntimeEnvironment.getApplication(),
6465
)
65-
6666
}
6767

6868
@Test

feature/home/src/screenshotTest/java/com/android/developers/androidify/home/HomeScreenScreenshotTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import androidx.compose.ui.tooling.preview.Preview
2020
import com.android.developers.androidify.theme.AndroidifyTheme
2121
import com.android.developers.androidify.theme.SharedElementContextPreview
2222
import com.android.developers.androidify.util.AdaptivePreview
23-
import com.android.developers.androidify.util.isAtLeastMedium
2423

2524
class HomeScreenScreenshotTest {
2625

wear/src/main/java/com/android/developers/androidify/service/AndroidifyDataListenerService.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ class AndroidifyDataListenerService : WearableListenerService() {
226226
delay(TRANSFER_TIMEOUT_MS)
227227
val transferState = watchFacePushStateManager.watchFaceInstallationStatus.first()
228228
if (transferState is WatchFaceInstallationStatus.Receiving &&
229-
transferState.transferId == initialRequest.transferId) {
229+
transferState.transferId == initialRequest.transferId
230+
) {
230231
watchFacePushStateManager.setWatchFaceInstallationStatus(
231232
WatchFaceInstallationStatus.Complete(
232233
success = false,
@@ -285,8 +286,8 @@ class AndroidifyDataListenerService : WearableListenerService() {
285286
@Suppress("DEPRECATION")
286287
val wakeLock = powerManager.newWakeLock(
287288
PowerManager.FULL_WAKE_LOCK
288-
or PowerManager.ACQUIRE_CAUSES_WAKEUP
289-
or PowerManager.ON_AFTER_RELEASE,
289+
or PowerManager.ACQUIRE_CAUSES_WAKEUP
290+
or PowerManager.ON_AFTER_RELEASE,
290291
WAKELOCK_TAG,
291292
)
292293

wear/src/main/java/com/android/developers/androidify/ui/TransmissionScreen.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ fun TransmissionScreen(modifier: Modifier = Modifier) {
100100

101101
@Composable
102102
fun FourColorProgressIndicator() {
103-
val colors = remember { listOf(
104-
LimeGreen,
105-
Primary80,
106-
Primary90,
107-
Blue,
108-
) }
103+
val colors = remember {
104+
listOf(
105+
LimeGreen,
106+
Primary80,
107+
Primary90,
108+
Blue,
109+
)
110+
}
109111

110112
val infiniteTransition = rememberInfiniteTransition(label = "transition")
111113
val progress by infiniteTransition.animateFloat(

wear/src/main/java/com/android/developers/androidify/ui/WatchFaceOnboardingScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ fun WatchFaceOnboardingScreen(
5050
when (state) {
5151
is WatchFaceInstallationStatus.Receiving,
5252
is WatchFaceInstallationStatus.Sending,
53-
-> {
53+
-> {
5454
TransmissionScreen()
5555
}
5656

5757
is WatchFaceInstallationStatus.Unknown,
5858
WatchFaceInstallationStatus.NotStarted,
59-
-> {
59+
-> {
6060
if (launchedFromWatchFaceTransfer) {
6161
TransmissionScreen()
6262
} else {

0 commit comments

Comments
 (0)