commit | 59a83b863435638b72ce52bcaf6d3d07357ad645 | [log] [tgz] |
---|---|---|
author | Dave Mankoff <mankoff@google.com> | Tue Apr 28 10:48:09 2020 -0400 |
committer | Dave Mankoff <mankoff@google.com> | Tue Apr 28 11:25:57 2020 -0400 |
tree | 427363fa1f85d2622c083d7f6784a355af29390a | |
parent | 65225acf1e570e3fa6d5e8ca68d20a1319e6f8e4 [diff] |
Pass actual plugin to PluginInstanceManager.MainHandler. Was previously passing PluginInfo where Plugin was needed. Bug: 146033031 Test: manual Change-Id: Idf3bf647206f4cc21ea4eeabad93ba8106cf2d17
diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstanceManager.java b/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstanceManager.java index ed9c98b..c8607df 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstanceManager.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstanceManager.java
@@ -256,9 +256,9 @@ case QUERY_ALL: if (DEBUG) Log.d(TAG, "queryAll " + mAction); for (int i = mPlugins.size() - 1; i >= 0; i--) { - PluginInfo<T> plugin = mPlugins.get(i); + PluginInfo<T> pluginInfo = mPlugins.get(i); mMainHandler.obtainMessage( - mMainHandler.PLUGIN_DISCONNECTED, plugin).sendToTarget(); + MainHandler.PLUGIN_DISCONNECTED, pluginInfo.mPlugin).sendToTarget(); } mPlugins.clear(); handleQueryPlugins(null);