Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 708ec75f authored by Winson Chung's avatar Winson Chung
Browse files

Skip logic to re-enable plugin if there is no valid component.

Bug: 121260102
Test: Just an null check
Change-Id: I623951a919904006b6035558a9535b662112608a
parent 0d4da83e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -258,7 +258,8 @@ public class PluginManagerImpl extends BroadcastReceiver implements PluginManage
                    Log.v(TAG, "Reloading " + pkg);
                }
            }
            if (Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction())) {
            if (Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction())
                    && componentName != null) {
                @PluginEnabler.DisableReason int disableReason =
                        getPluginEnabler().getDisableReason(componentName);
                if (disableReason == PluginEnabler.DISABLED_FROM_EXPLICIT_CRASH