commit | 8ab04d4c8480b12d74625b1a5bdc9dde2f9d21da | [log] [tgz] |
---|---|---|
author | Evan Laird <evanlaird@google.com> | Thu Nov 09 15:53:01 2017 -0500 |
committer | Evan Laird <evanlaird@google.com> | Thu Nov 09 15:53:01 2017 -0500 |
tree | e76893e247a8dc47b020442dfb87b4eef7a04e2d | |
parent | fde6ea8d29da5f9c6b321df64c8f0722d1173586 [diff] |
Don't send PLUGIN_CHANGED broadcast unless something changed If a plugin changes the layout (e.g., CameraCutout changing status bar height), the preference screen will call persistBoolean, which would always cause PLUGIN_CHANGED to be broadcasted. This causes bad infinite loops. Test: install CameraCutout plugin and navigate to Settings > Sysui tuner > Plugins and watch it loop a lot Change-Id: Id340bbfb0864508f1895bbd1e6cb2849a839bad8