Skip to content

Some clicks can be missed #4

@TkachenkoViacheslav

Description

@TkachenkoViacheslav

Steps to reproduce (it's hard and not always reproducible):

  1. disableSystemVolumeHandler = true
  2. with a delay about 1-2 seconds click "up" -> "down" -> "up" -> "down" -> ...
  3. On some time, pressing on the up/down button won't result in firing blocks, In code inside "public override func observeValue(...)" we are getting into the next If block:
if disableSystemVolumeHandler && newVolume == Float(initialVolume) {
                // Resetting volume, skip blocks
                we are here!
                return
} else { ... 

but in fact button press was detected and newVolume != oldValue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions