diff options
author | Andrew Shulaev <ddrone@google.com> | 2015-04-24 15:31:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-24 15:31:56 +0000 |
commit | 89cb49af9c8b27206b3a5638b5e4f6baa16f24ae (patch) | |
tree | 3e6cf7d4e5a26403647acd6c2286f19088a567e6 | |
parent | 01200725b29538d22eecf76121e7930ba7649986 (diff) | |
parent | e1b8e967a19e8779da7cd10f44f61e4dd36bc4ea (diff) | |
download | idea-89cb49af9c8b27206b3a5638b5e4f6baa16f24ae.tar.gz |
am e1b8e967: Merge "Add comment about ColorInfo structure" into studio-1.3-dev automerge: 0cec8b3 automerge: 36c4260
* commit 'e1b8e967a19e8779da7cd10f44f61e4dd36bc4ea':
Add comment about ColorInfo structure
-rw-r--r-- | android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java b/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java index 5dc3e2759bf..93257cc42e1 100644 --- a/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java +++ b/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java @@ -532,6 +532,10 @@ public class AttributesTableModel extends AbstractTableModel implements CellSpan } final boolean succeeded; + // Color editing may return reference value, which can be the same as previous value + // in this cell, but updating table is still required because value that reference points + // to was changed. To preserve this information, ColorEditor returns ColorInfo data + // structure with value and boolean flag which shows whether reload should be forced. if (value instanceof ColorInfo) { ColorInfo info = (ColorInfo) value; succeeded = setAttributeValue(info.getResourceValue(), info.isForceReload()); |