commit | 7ff59f855648f351d33a3d85f2e89c2f7f302233 | [log] [tgz] |
---|---|---|
author | Yuncheol Heo <ycheo@google.com> | Thu Mar 18 16:41:05 2021 -0700 |
committer | Yuncheol Heo <ycheo@google.com> | Fri Mar 19 12:34:51 2021 -0700 |
tree | 72f11adcd0c1603e0aae5a772ea0123413f55733 | |
parent | 11a7f13364724870996ab47288be5738263b01f2 [diff] |
Add Theme.setNewResourcesImpl() method. - Race condition between Theme.setImpl() cnd Theme.applyStyle() can happen when creating Window and Configuration-change occur together. - To maintain the integrity, the whole process of creating new ThemeImpl and setting it in Resources.setImpl() should be guarded by the lock. - Moves the lock of ThemeImpl.mKey to Theme.mLock. Bug: 173558667 Test: manual test in the bug Change-Id: I9ebdc48333b188c0b26b1b7490a5cbb34bbe6e0f