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

Commit bf1bac52 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari Committed by Android (Google) Code Review
Browse files

Merge "Add logs to start and close for InputManagerGlobal.TestSession" into main

parents 328835e7 2fa84617
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -206,7 +206,14 @@ public final class InputManagerGlobal {
        synchronized (InputManagerGlobal.class) {
            final var oldInstance = sInstance;
            sInstance = new InputManagerGlobal(inputManagerService);
            return () -> sInstance = oldInstance;
            Log.d(TAG, "Starting InputManagerGlobal test session with new service instance "
                    + inputManagerService + ", old service instance = "
                    + (oldInstance != null ? oldInstance.getInputManagerService() : "null"));
            return () -> {
                Log.d(TAG, "Closing test session and restoring service instance to "
                        + (oldInstance != null ? oldInstance.getInputManagerService() : "null"));
                sInstance = oldInstance;
            };
        }
    }