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

Commit de3b7f1a authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Android (Google) Code Review
Browse files

Merge "Prevent multiple calls of ActivityThread.systemMain()" into rvc-qpr-dev

parents 2aa95e8d 9c4853d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public class MediaShellCommand extends ShellCommand {
        }
        if (sThread == null) {
            Looper.prepare();
            sThread = ActivityThread.systemMain();
            sThread = ActivityThread.currentActivityThread();
            Context context = sThread.getSystemContext();
            sMediaSessionManager =
                    (MediaSessionManager) context.getSystemService(Context.MEDIA_SESSION_SERVICE);