Skip to content

Commit b389305

Browse files
committed
Apply new spotless rules
1 parent fed62f6 commit b389305

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/ui/theme/Type.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ val Typography = Typography(
4646
lineHeight = 16.sp,
4747
letterSpacing = 0.5.sp
4848
)
49-
*/
49+
*/
5050
)

misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ class ActivityEmbeddingKotlinSnippets {
276276
/**
277277
* Function used by snippet.
278278
*/
279-
fun classForItem(item: Int): Class<*> { return Class::class.java }
279+
fun classForItem(item: Int): Class<*> {
280+
return Class::class.java
281+
}
280282

281283
// [START android_activity_embedding_MenuActivity_class_kotlin]
282284
inner class MenuActivity : AppCompatActivity() {

misc/src/main/java/com/example/snippets/ui/theme/Type.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ val Typography = Typography(
4646
lineHeight = 16.sp,
4747
letterSpacing = 0.5.sp
4848
)
49-
*/
49+
*/
5050
)

xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private suspend fun loadGltfFile(session: Session) {
3636
private fun createModelEntity(session: Session, gltfModel: GltfModel) {
3737
// [START androidxr_scenecore_gltfmodelentity_create]
3838
if (session.scene.spatialCapabilities
39-
.hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_3D_CONTENT)
39+
.hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_3D_CONTENT)
4040
) {
4141
val gltfEntity = GltfModelEntity.create(session, gltfModel)
4242
}

xr/src/main/java/com/example/xr/scenecore/SpatialAudio.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private fun playSpatialAudioAtEntity(session: Session, appContext: Context, enti
4040
// [START androidxr_scenecore_playSpatialAudio]
4141
// Check spatial capabilities before using spatial audio
4242
if (session.scene.spatialCapabilities
43-
.hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_SPATIAL_AUDIO)
43+
.hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_SPATIAL_AUDIO)
4444
) { // The session has spatial audio capabilities
4545
val maxVolume = 1F
4646
val lowPriority = 0

0 commit comments

Comments
 (0)