commit | 2a1e0c46c4c00aa183537b9daad7db688a8b2842 | [log] [tgz] |
---|---|---|
author | Alex Salo <asalo@google.com> | Wed Oct 07 15:30:00 2020 -0700 |
committer | Alex Salo <asalo@google.com> | Mon Nov 02 10:28:11 2020 -0800 |
tree | 3bb5de3bccac304fde317f091f0ecd6706d8fc9c | |
parent | f2b1434522c2d6dde828d93b67b5fcb9030c70d8 [diff] |
Listen DeviceConfig changes DeviceConfig reads are not free, and AttentionDetector code sits on a critical system path. Avoid reading DeviceConfig on each invocation, add a onChangeListener instead. Bug: 169427927 Test: manually and atest AttentionDetectorTest Change-Id: Icb89f78f07207ee8e80a11f16b0f03ab578f4ea6