a/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>
This commit is contained in:
utzcoz 2024-12-28 13:28:51 +08:00 committed by korejan
parent b95ebbe69b
commit 4558bfe418
2 changed files with 3 additions and 1 deletions

View file

@ -66,6 +66,6 @@ spotless {
kotlin {
target 'src/main/java/**/*.kt'
// Use ktfmt(https://github.com/facebook/ktfmt) as the default Kotlin formatter.
ktfmt('0.43').kotlinlangStyle()
ktfmt("$ktfmtVersion").kotlinlangStyle()
}
}

View file

@ -32,7 +32,9 @@ class SystemUiController(view: View) {
private abstract class Impl(var view: View) {
private val uiHandler: Handler = Handler(Looper.getMainLooper())
abstract fun hide()
fun runOnUiThread(runnable: Runnable) {
uiHandler.post(runnable)
}