File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
misc/src/main/java/com/example/snippets/backgroundwork Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change
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
+
1
17
package com.example.snippets.backgroundwork
2
18
3
19
import android.app.Activity
@@ -14,13 +30,11 @@ class WakeLockSnippetsKotlin : Activity() {
14
30
newWakeLock(PowerManager .PARTIAL_WAKE_LOCK , " MyClassName::MyWakelockTag" ).apply {
15
31
acquire()
16
32
}
17
-
18
33
}
19
34
// [END android_backgroundwork_wakelock_create_kotlin]
20
35
21
36
override fun onCreate (savedInstanceState : Bundle ? ) {
22
37
23
-
24
38
super .onCreate(savedInstanceState)
25
39
}
26
40
@@ -39,7 +53,5 @@ class WakeLockSnippetsKotlin : Activity() {
39
53
// [END android_backgroundwork_wakelock_release_kotlin]
40
54
41
55
private fun doTheWork () {
42
-
43
56
}
44
-
45
57
}
You can’t perform that action at this time.
0 commit comments