diff options
| author | 2023-06-09 09:52:34 +0000 | |
|---|---|---|
| committer | 2023-06-26 05:54:35 +0000 | |
| commit | 458eef30dd06a510e98ef10a46c669787d99bc04 (patch) | |
| tree | dc6a46a2031f758fc4295de994325d431c058c33 /libs/androidfw/ObbFile.cpp | |
| parent | 11b85acc51705834b77a2c55da023580b9751c66 (diff) | |
chore(#MagSettingsPanel): adjust SeekBarWithIconButtonsView callbacks
Originally, when clicking icon start/end on view, it would trigger seekbar.setProgress, then the seekbar will update position then trigger callback onProgressChanged with parameter fromUser false. This should be considered as user triggered action too. Therefore, we add new flag mSetProgressFromButtonFlag to help check if the progress changed is triggered by clicking icon button. If the flag is set, SeekBarWithIconButtonsViews would trigger onProgressChanged with parameter fromUser true. Beside, we extend OnSeekBarChangeListener to new interface OnSeekBarWithIconButtonsChangeListener and add method onUserInteractionFinalized in the interface. With the new method, outside listeners can distinguish whether the seekbar progress changed is trigger by dragging the slider or cliking the button.
Bug: 286176069
Test: manually
atest SeekBarWithIconButtonsViewTest
atest FontScalingDialogTest
atest WindowMagnificationSettingsTest
Change-Id: Ibb579a543e5c9286ed88faba8eef5d67f5a902f1
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions