Skip to content

Commit 7c2c698

Browse files
riggaroogithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent b365d6d commit 7c2c698

File tree

1 file changed

+42
-26
lines changed

1 file changed

+42
-26
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/animations/SharedElementSnippets.kt

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2024 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+
*/
16+
117
@file:OptIn(ExperimentalSharedTransitionApi::class)
218
@file:Suppress("unused")
319

@@ -173,10 +189,10 @@ private class SharedElementBasicUsage1 {
173189
// [START_EXCLUDE]
174190
Text(
175191
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
176-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
177-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
178-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
179-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
192+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
193+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
194+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
195+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
180196
)
181197
// [END_EXCLUDE]
182198
}
@@ -280,10 +296,10 @@ private class SharedElementBasicUsage2 {
280296
// [START_EXCLUDE]
281297
Text(
282298
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
283-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
284-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
285-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
286-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
299+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
300+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
301+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
302+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
287303
)
288304
// [END_EXCLUDE]
289305
}
@@ -410,10 +426,10 @@ private class SharedElementBasicUsage3 {
410426
// [START_EXCLUDE]
411427
Text(
412428
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
413-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
414-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
415-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
416-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
429+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
430+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
431+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
432+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
417433
)
418434
// [END_EXCLUDE]
419435
}
@@ -557,10 +573,10 @@ private class SharedElementBasicUsage4 {
557573
)
558574
Text(
559575
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
560-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
561-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
562-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
563-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
576+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
577+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
578+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
579+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
564580
)
565581
// [END_EXCLUDE]
566582
}
@@ -722,10 +738,10 @@ private class SharedElementBoundsTransform {
722738
)
723739
Text(
724740
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
725-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
726-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
727-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
728-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
741+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
742+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
743+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
744+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
729745
)
730746
}
731747
}
@@ -776,7 +792,7 @@ private fun SharedElement_Clipping() {
776792
rememberSharedContentState(key = "title"),
777793
animatedVisibilityScope = this@AnimatedContent,
778794

779-
)
795+
)
780796
)
781797
}
782798
} else {
@@ -814,10 +830,10 @@ private fun SharedElement_Clipping() {
814830
)
815831
Text(
816832
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
817-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
818-
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
819-
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
820-
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
833+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
834+
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
835+
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
836+
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
821837
)
822838
}
823839
}
@@ -1456,4 +1472,4 @@ fun PlaceholderSizeAnimated_Demo() {
14561472
}
14571473
}
14581474
// [END android_compose_shared_element_placeholder_size]
1459-
}
1475+
}

0 commit comments

Comments
 (0)