Skip to content

Commit b4619e3

Browse files
jakerosemangithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent 63b82c2 commit b4619e3

File tree

1 file changed

+21
-5
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/components

1 file changed

+21
-5
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/components/SearchBar.kt

Lines changed: 21 additions & 5 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
package com.example.compose.snippets.components
218

319
import androidx.compose.foundation.clickable
@@ -9,6 +25,7 @@ import androidx.compose.foundation.layout.fillMaxSize
925
import androidx.compose.foundation.layout.fillMaxWidth
1026
import androidx.compose.foundation.layout.padding
1127
import androidx.compose.foundation.lazy.LazyColumn
28+
import androidx.compose.foundation.rememberScrollState
1229
import androidx.compose.foundation.verticalScroll
1330
import androidx.compose.material.icons.Icons
1431
import androidx.compose.material.icons.filled.MoreVert
@@ -36,7 +53,6 @@ import androidx.compose.ui.semantics.semantics
3653
import androidx.compose.ui.semantics.traversalIndex
3754
import androidx.compose.ui.tooling.preview.Preview
3855
import androidx.compose.ui.unit.dp
39-
import androidx.compose.foundation.rememberScrollState
4056

4157
@OptIn(ExperimentalMaterial3Api::class)
4258
// [START android_compose_components_searchbarbasicfilterlist]
@@ -47,8 +63,8 @@ fun SearchBarBasicFilterList(modifier: Modifier = Modifier) {
4763
Box(
4864
modifier
4965
.fillMaxSize()
50-
.semantics { isTraversalGroup = true })
51-
{
66+
.semantics { isTraversalGroup = true }
67+
) {
5268
SearchBar(
5369
modifier = Modifier
5470
.align(Alignment.TopCenter)
@@ -110,7 +126,8 @@ fun SearchBarFilterList(
110126
Box(
111127
modifier
112128
.fillMaxSize()
113-
.semantics { isTraversalGroup = true }) {
129+
.semantics { isTraversalGroup = true }
130+
) {
114131
SearchBar(
115132
modifier = Modifier
116133
.align(Alignment.TopCenter)
@@ -197,4 +214,3 @@ fun AppSearchBar(modifier: Modifier = Modifier) {
197214
modifier
198215
)
199216
}
200-

0 commit comments

Comments
 (0)