Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88bc2fd0 authored by Biswarup Pal's avatar Biswarup Pal
Browse files

Fix caching of long press and multi press timeout

ViewConfiguration used to cache values for long press and multi
press timeouts by fetching values from settings within the constructor.
As a result, when the user changes the long press value from Settings,
the changes don't reflect in the already opened apps. This change fixes
this by avoid caching as a member and fetching the settings value on
demand.

Test: atest ViewConfigurationTest
Fixes: 422182063
Flag: android.companion.virtualdevice.flags.viewconfiguration_apis
Change-Id: I2038e8b539af1ef2021f2753a58487150ee8403f
parent 54c1920e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment