Skip to content

Commit ad51e8c

Browse files
Explain how to exercise different codepaths
1 parent a2d9b4c commit ad51e8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wear/src/main/java/com/example/wear/snippets/alwayson/AlwaysOnService.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ class AlwaysOnService : LifecycleService() {
6666
super.onStartCommand(intent, flags, startId)
6767
Log.d(TAG, "onStartCommand: Service started with startId: $startId")
6868

69+
// Switch between different types of ongoing notification
6970
createNotification1()
71+
// createNotification2()
72+
// createNotification3()
7073

7174
Log.d(TAG, "onStartCommand: Service is now running as foreground service")
7275

0 commit comments

Comments
 (0)