From ea38a49f47d8301f5df2c5f5b5e698b0a7934a6b Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier Date: Mon, 12 Dec 2022 23:45:10 +0000 Subject: [PATCH] Correct Error reported to logcat when Plugin fails to load Test: N/A Bug: 260864389 Change-Id: I723afce7e1afaf9219cfc75e46e4e37d5d95f784 --- .../android/systemui/shared/plugins/PluginActionManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginActionManager.java b/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginActionManager.java index e226d58203f44..b057fe422fc45 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginActionManager.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginActionManager.java @@ -362,8 +362,7 @@ public class PluginActionManager { nb.addAction(new Action.Builder(null, "Disable plugin", pi).build()); mNotificationManager.notify(SystemMessage.NOTE_PLUGIN, nb.build()); // TODO: Warn user. - Log.w(TAG, "Plugin has invalid interface version " + e.getActualVersion() - + ", expected " + e.getExpectedVersion()); + Log.w(TAG, "Error loading plugin; " + e.getMessage()); } /**