The open source OpenXR runtime
0
fork

Configure Feed

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

ipc/android: Bump ktfmt to 0.53 and reformat it

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>

authored by

utzcoz and committed by
korejan
b04fbb67 19539af5

+5 -5
+1 -1
src/xrt/ipc/android/build.gradle
··· 94 94 kotlin { 95 95 target 'src/main/java/**/*.kt' 96 96 // Use ktfmt(https://github.com/facebook/ktfmt) as the default Kotlin formatter. 97 - ktfmt('0.43').kotlinlangStyle() 97 + ktfmt("$ktfmtVersion").kotlinlangStyle() 98 98 } 99 99 }
+3 -3
src/xrt/ipc/android/src/main/java/org/freedesktop/monado/ipc/MonadoService.kt
··· 41 41 // If the surface comes from client, just stop the service when client disconnected 42 42 // because the surface belongs to the client. 43 43 if (binder.canDrawOverOtherApps()) BuildConfig.WATCHDOG_TIMEOUT_MILLISECONDS else 0, 44 - this 44 + this, 45 45 ) 46 46 watchdog.startMonitor() 47 47 ··· 88 88 this, 89 89 0, 90 90 Intent(BuildConfig.SHUTDOWN_ACTION).setPackage(packageName), 91 - flags 91 + flags, 92 92 ) 93 93 94 94 val notification = serviceNotification.buildNotification(this, pendingShutdownIntent) ··· 97 97 startForeground( 98 98 serviceNotification.getNotificationId(), 99 99 notification, 100 - ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST 100 + ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST, 101 101 ) 102 102 } else { 103 103 startForeground(serviceNotification.getNotificationId(), notification)
+1 -1
src/xrt/ipc/android/src/main/java/org/freedesktop/monado/ipc/Watchdog.kt
··· 16 16 /** Client watchdog, to determine whether runtime service should be stopped. */ 17 17 class Watchdog( 18 18 private val shutdownDelayMilliseconds: Long, 19 - private val shutdownListener: ShutdownListener 19 + private val shutdownListener: ShutdownListener, 20 20 ) { 21 21 /** 22 22 * Interface definition for callbacks to be invoked when there's no client connected. Noted that