Skip to content

Commit 245b149

Browse files
jakerosemangithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent ac20514 commit 245b149

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

misc/src/main/java/com/example/snippets/location/Permissions.kt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
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.snippets.location
218

3-
import android.os.Build
4-
import androidx.annotation.RequiresApi
519
import android.Manifest
20+
import android.os.Build
621
import androidx.activity.ComponentActivity
722
import androidx.activity.result.contract.ActivityResultContracts
23+
import androidx.annotation.RequiresApi
824

925
// Assuming this function is inside a ComponentActivity or a subclass of it
1026
class LocationActivity : ComponentActivity() {
@@ -40,4 +56,4 @@ class LocationActivity : ComponentActivity() {
4056
)
4157
}
4258
// [END misc_location_requestpermissions_kotlin]
43-
}
59+
}

0 commit comments

Comments
 (0)