summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
diff options
context:
space:
mode:
authorChilun <chilunhuang@google.com>2021-12-23 15:51:07 +0800
committerChilun <chilunhuang@google.com>2021-12-28 16:57:59 +0800
commit6b104eec9a2878fd4128e8ed5a8c7569a15c6397 (patch)
tree3cfc9a14792603fa4487c6a34a5fad30f9881c3f /core/java/android/util/SparseArrayMap.java
parent774ef9f71b504dee35eee4dcf3313f3f79b56e39 (diff)
Store pending override config instead of creating ActivityClientRecord
Create ActivityClientRecord early in preExecute may cause NullPointerException. If two LaunchActivityItem using the same token and the 1st postExecute() comes after 2nd preExecute(), the corresponding launching activity will be removed and cause 2nd execute() get NullPointerException. Since the only use case to get ActivityClientRecord in preExecute() is just to use it to store the pending override config. We can directly store the latest pending override config from preExecute() in ActivityThread instead of creating ActivityClientRecord. Bug: 201668069 Test: atest TransactionExecutorTests atest ActivityThreadTest Change-Id: If350e942254e54c9ec90bc63a6e50eb67d038183
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions