OSDN Git Service

Prevent task in recents being empty when activity info in unavailable
authorMatthew Ng <ngmatthew@google.com>
Thu, 19 Oct 2017 23:04:30 +0000 (16:04 -0700)
committerMatthew Ng <ngmatthew@google.com>
Thu, 19 Oct 2017 23:04:30 +0000 (16:04 -0700)
commit6acfb654ceeb9d027755e30aeb5e6075d2f1ccc0
tree1bd0eadf05b4c76275071d7d21606aff15d6ea4e
parent95111379d51ee9542254cf79bdfc6c70224b0d73
Prevent task in recents being empty when activity info in unavailable

When an app is unavailable to get its activity info, it will not have a
color, title or icon and it would look weird in recents. Therefore skip
adding it to the recents list when this occurs.

Test: manual
Change-Id: I1cf2f7f8ea5ce132159f6aabfbfae31df0187660
Fixes: 64236158
packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/RecentsTaskLoadPlan.java