The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc/android: Clean up MonadoService

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
c65ce85f a1aa5611

+15 -11
+15 -11
src/xrt/ipc/android/src/main/java/org/freedesktop/monado/ipc/MonadoService.kt
··· 53 53 } 54 54 55 55 private fun handleStart() { 56 - val pendingShutdownIntent = PendingIntent.getForegroundService(this, 57 - 0, 58 - Intent(BuildConfig.SHUTDOWN_ACTION).setPackage(packageName), 59 - 0) 56 + val pendingShutdownIntent = PendingIntent.getForegroundService( 57 + this, 58 + 0, 59 + Intent(BuildConfig.SHUTDOWN_ACTION).setPackage(packageName), 60 + 0 61 + ) 60 62 61 63 val notification = serviceNotification.buildNotification(this, pendingShutdownIntent) 62 64 63 - 64 65 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { 65 - startForeground(serviceNotification.getNotificationId(), 66 - notification, 67 - ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST) 66 + startForeground( 67 + serviceNotification.getNotificationId(), 68 + notification, 69 + ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST 70 + ) 68 71 } else { 69 - startForeground(serviceNotification.getNotificationId(), 70 - notification) 72 + startForeground( 73 + serviceNotification.getNotificationId(), 74 + notification 75 + ) 71 76 } 72 - 73 77 } 74 78 75 79 companion object {