ref #6: Only hide matching powerbar

This commit is contained in:
Tim Kluge 2024-12-10 21:38:27 +01:00
parent f2c7c59bb7
commit 6daefd3b3c

View File

@ -258,6 +258,7 @@ class Window(
val duration = intent.getLongExtra("duration", 15_000) val duration = intent.getLongExtra("duration", 15_000)
Log.d(TAG, "Received broadcast to hide $location powerbar for $duration ms") Log.d(TAG, "Received broadcast to hide $location powerbar for $duration ms")
if (location == powerbarLocation) {
currentHideJob?.cancel() currentHideJob?.cancel()
currentHideJob = CoroutineScope(Dispatchers.Main).launch { currentHideJob = CoroutineScope(Dispatchers.Main).launch {
rootView.visibility = View.INVISIBLE rootView.visibility = View.INVISIBLE
@ -271,3 +272,4 @@ class Window(
} }
} }
} }
}