summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-09-16 11:11:23 -0700
committerDianne Hackborn <hackbod@google.com>2014-09-16 16:22:55 -0700
commit7922882189a5c1cc62de7e91b067f90d9a3e2f2b (patch)
tree8c34891388fcdf6f123cd06fc8018788f3b27d83 /libs/hwui/ProgramCache.cpp
parent6b5db58f10365b28fe956caabbf1e2948458781b (diff)
Fix issue #16662560: SingleTop activity is getting instantiated multiple time
Introduce a concept of a "root affinity" to a task -- this is the affinity of the initial activity in the task. Use this instead of the current affinity in findTaskLocked(), where we look for an existing task to use for a NEW_TASK intent. This changes the semantics of the new "relinquish task identity" mode so that it doesn't relinquish the root affinity of the task. This means when we are in the old style application-based recents matching of findTaskLocked(), we will never count these tasks as the same as the application's tasks only because they have relinquished their identity to that application. This is probably okay, it is basically putting a different line between new document-centric recents and old application-centric recents when they are mixed together. Change-Id: I73a22ead9bd08e98bf67ad035a017f828c6a6715
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions