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

Commit d6f0a5c2 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Launch recents from main thread

Such that binder response inherits our nice scheduling
characteristics.

The old logic isn't really needed anymore, as we don't do anything
interesting on the main thread.

Test: Open app from recents
Fixes: 136111411
Change-Id: Ibfb0f60113bc0d9d94844ea4cde0e78723183eb2
parent 3d9cc127
Loading
Loading
Loading
Loading
+15 −21
Original line number Diff line number Diff line
@@ -307,11 +307,7 @@ public class ActivityManagerWrapper {
        }
        final ActivityOptions finalOptions = options;

        // Execute this from another thread such that we can do other things (like caching the
        // bitmap for the thumbnail) while AM is busy starting our activity.
        mBackgroundExecutor.submit(new Runnable() {
            @Override
            public void run() {

        boolean result = false;
        try {
            result = startActivityFromRecents(taskKey.id, finalOptions);
@@ -328,8 +324,6 @@ public class ActivityManagerWrapper {
            });
        }
    }
        });
    }

    /**
     * Starts a task from Recents synchronously.