From f838407e4ad16a918b8b4527088be573f6448d91 Mon Sep 17 00:00:00 2001 From: Sid Soundararajan Date: Wed, 29 Jun 2016 11:57:21 -0700 Subject: [PATCH] Recents: Make sure blacklist checks the package name as well as activity name BUG: 28719274 BUG: 28764678 Change-Id: Ib17d3feda8997ce5b29060bff47d51f503c868dc --- .../android/systemui/recents/misc/SystemServicesProxy.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java index 94231c6403b09..97a4216ac8c32 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +++ b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java @@ -330,8 +330,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; }