summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorSteve Elliott <steell@google.com>2019-03-18 13:37:22 -0400
committerSteve Elliott <steell@google.com>2019-03-18 15:58:04 -0400
commita3f52079268c2cbfd9fedad0a22d97ee7bf3e838 (patch)
tree4456b2726fc649888f45255ce32b50986f18b0e9 /rs/java/android/renderscript/RenderScript.java
parent4687d70d9dd86635e6741a226bd15babc7a916ed (diff)
Initialize GlobalActionsPanelPlugin before GlobalActions is launched
Previously, we were loading the GlobalActionsPanelPlugin in the constructor for GlobalActionsDialog, which is instantiated on demand the first time that Global Actions is launched. Because the plugin is loaded in the background, a race condition exists where the GlobalActions Dialog is displayed before the plugin has finished loading, and so the Plugin will not appear, despite being enabled. In this change, the GlobalActionsPanelPlugin is loaded in GlobalActionsImpl, which is scoped to the SystemUI Applcation lifetime (it will always be available). Therefore, the plugin will start loading as soon as it is enabled by the user. The race condition still exists, but is greatly mitigated and should not pose a significant issue. Test: manual Change-Id: I624f7b0b9133e044fa486ad6a74944aba0511a70
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions