File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
misc/src/main/java/com/example/snippets/location Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 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+
117package com.example.snippets.location
218
3- import android.os.Build
4- import androidx.annotation.RequiresApi
519import android.Manifest
20+ import android.os.Build
621import androidx.activity.ComponentActivity
722import androidx.activity.result.contract.ActivityResultContracts
23+ import androidx.annotation.RequiresApi
824
925// Assuming this function is inside a ComponentActivity or a subclass of it
1026class LocationActivity : ComponentActivity () {
@@ -40,4 +56,4 @@ class LocationActivity : ComponentActivity() {
4056 )
4157 }
4258 // [END misc_location_requestpermissions_kotlin]
43- }
59+ }
You can’t perform that action at this time.
0 commit comments