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

Commit 305b2874 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Register ProtoLog groups on ShellInit instance creation

We use ProtoLog before the ShellInit#init() method is called for example when registering callback for when ShellInit#init() is triggered. So we are moving the group registration earlier.

Test: Build and make sure SysUI doesn't crash.
Flag: EXEMPT bug fix
Change-Id: Idf4d01e67d15c0caa688e2b480ba338ac8c270e1
parent 936ecd09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ public class ShellInit {

    public ShellInit(ShellExecutor mainExecutor) {
        mMainExecutor = mainExecutor;
        ProtoLog.registerGroups(ShellProtoLogGroup.values());
    }

    /**
@@ -76,7 +77,6 @@ public class ShellInit {
     */
    @VisibleForTesting
    public void init() {
        ProtoLog.registerGroups(ShellProtoLogGroup.values());
        ProtoLog.v(WM_SHELL_INIT, "Initializing Shell Components: %d", mInitCallbacks.size());
        SurfaceControl.setDebugUsageAfterRelease(true);
        // Init in order of registration