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

Commit 39fd49b5 authored by Sid Soundararajan's avatar Sid Soundararajan Committed by The Android Automerger
Browse files

Recents: Make sure blacklist checks the package name as well as activity name

BUG: 28719274
BUG: 28764678
Change-Id: Ib17d3feda8997ce5b29060bff47d51f503c868dc
parent 314d000f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -334,8 +334,9 @@ public class SystemServicesProxy {
            // NOTE: The order of these checks happens in the expected order of the traversal of the
            // tasks

            // Remove the task if it is blacklisted
            if (sRecentsBlacklist.contains(t.realActivity.getClassName())) {
            // Remove the task if it or it's package are blacklsited
            if (sRecentsBlacklist.contains(t.realActivity.getClassName()) ||
                    sRecentsBlacklist.contains(t.realActivity.getPackageName())) {
                iter.remove();
                continue;
            }