diff options
author | Adam Lesinski <adamlesinski@google.com> | 2017-04-05 16:31:30 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2017-04-05 17:01:54 -0700 |
commit | c745f42169df6687a764e48b65878f22965c1530 (patch) | |
tree | 7b0f33623d035b4253fbb3876b9c6a2a7245905d /tools/aapt2/java/JavaClassGenerator.h | |
parent | ba2e284a62eaf79b70a84d3e648ad144a7dea344 (diff) |
OverlayManagerService: Make broadcasts/updates explicit
Previously there was a listener attached to the Settings object
which would fire any time a single settings change was made.
This made it very inefficient to do batch updates.
This change makes the Settings object return its mutated status
on each call to a mutating method, allowing the caller to keep track
of whether or not to notify the listener of any changes.
This allows for the implementation of setEnabledExclusive, where
all but the target overlay are disabled and only a single notification
/ update is sent out.
Bug: 36099320
Test: manual (with OverlayManagerService.DEBUG = true), observe logcat
Test: when Going to Settings -> Display -> Advanced -> Themes and
Test: selecting a theme.
Change-Id: Ic8b8ca3ba0cf5d2d682bf6dac5a6c82e4f0f2502
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.h')
0 files changed, 0 insertions, 0 deletions