SystemUI: SeekBarViewModel: Cancel polling immediately on scrubbing start

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2025-10-23 22:53:47 +05:30
committed by Zabuka_zuzu
parent 6b67a3665c
commit e772789514

View File

@@ -191,11 +191,12 @@ constructor(
/** Event indicating that the user has started interacting with the seek bar. */
@AnyThread
fun onSeekStarting() =
bgExecutor.execute {
scrubbing = true
isFalseSeek = false
}
fun onSeekStarting() = bgExecutor.execute {
scrubbing = true
isFalseSeek = false
cancel?.run()
cancel = null
}
/**
* Event indicating that the user has moved the seek bar.