SystemUI: SeekBarViewModel: Cancel polling immediately on scrubbing start
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
committed by
Zabuka_zuzu
parent
6b67a3665c
commit
e772789514
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user