Skip to content

Commit 55f9e94

Browse files
trambui09github-actions[bot]
authored andcommitted
Apply Spotless
1 parent 9036af0 commit 55f9e94

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/adaptivelayouts/SampleNavigableListDetailPaneScaffold.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fun SampleListDetailPaneScaffoldWithPredictiveBackFull() {
157157

158158
ListDetailPaneScaffold(
159159
directive = scaffoldNavigator.scaffoldDirective,
160-
scaffoldState = scaffoldNavigator.scaffoldState,
160+
scaffoldState = scaffoldNavigator.scaffoldState,
161161
listPane = {
162162
AnimatedPane {
163163
MyList(
@@ -183,7 +183,6 @@ fun SampleListDetailPaneScaffoldWithPredictiveBackFull() {
183183
},
184184
)
185185
// [END android_compose_adaptivelayouts_sample_list_detail_pane_scaffold_with_pb_full]
186-
187186
}
188187

189188
@Composable
@@ -254,4 +253,3 @@ val shortStrings = listOf(
254253
"Oreo",
255254
"Pie",
256255
)
257-

compose/snippets/src/main/java/com/example/compose/snippets/adaptivelayouts/SampleNavigableSupportingPaneScaffold.kt

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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+
*/
16+
117
package com.example.compose.snippets.adaptivelayouts
218

319
import androidx.compose.foundation.background
@@ -52,9 +68,10 @@ fun SampleNavigableSupportingPaneScaffoldFull() {
5268
NavigableSupportingPaneScaffold(
5369
navigator = scaffoldNavigator,
5470
mainPane = {
55-
AnimatedPane(modifier = Modifier
56-
.safeContentPadding()
57-
.background(Color.Red)
71+
AnimatedPane(
72+
modifier = Modifier
73+
.safeContentPadding()
74+
.background(Color.Red)
5875
) {
5976
if (scaffoldNavigator.scaffoldValue[SupportingPaneScaffoldRole.Supporting] == PaneAdaptedValue.Hidden) {
6077
Button(
@@ -91,7 +108,8 @@ fun ThreePaneScaffoldPaneScope.MainPane(
91108
modifier: Modifier = Modifier,
92109
) {
93110
AnimatedPane(
94-
modifier = modifier.safeContentPadding()) {
111+
modifier = modifier.safeContentPadding()
112+
) {
95113
// Main pane content
96114
if (shouldShowSupportingPaneButton) {
97115
Button(onClick = onNavigateToSupportingPane) {
@@ -153,7 +171,7 @@ fun SampleSupportingPaneScaffoldSimplifiedWithPredictiveBackHandler() {
153171

154172
SupportingPaneScaffold(
155173
directive = scaffoldNavigator.scaffoldDirective,
156-
scaffoldState = scaffoldNavigator.scaffoldState,
174+
scaffoldState = scaffoldNavigator.scaffoldState,
157175
mainPane = {
158176
MainPane(
159177
shouldShowSupportingPaneButton = scaffoldNavigator.scaffoldValue.secondary == PaneAdaptedValue.Hidden,

0 commit comments

Comments
 (0)