PIP: Fix NPE when onboarding is shown

Bug: 28754669
Change-Id: Ifca78e111b63422c3875dc4eba48c02e11f83530
This commit is contained in:
Jaewan Kim
2016-05-13 16:18:49 +09:00
parent 02a71e6eeb
commit 91c5066c00

View File

@@ -323,6 +323,7 @@ public class SystemServicesProxy {
// Remove the task if it is blacklisted
if (sRecentsBlacklist.contains(t.realActivity.getClassName())) {
iter.remove();
continue;
}
// Remove the task if it is marked as excluded, unless it is the first most task and we
@@ -332,6 +333,7 @@ public class SystemServicesProxy {
isExcluded |= quietProfileIds.contains(t.userId);
if (isExcluded && (!isFirstValidTask || !includeFrontMostExcludedTask)) {
iter.remove();
continue;
}
isFirstValidTask = false;