summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2015-04-07 14:23:14 -0700
committerWale Ogunwale <ogunwale@google.com>2015-04-07 14:41:53 -0700
commit73eba74d11f936b5109d462c9b184649b0785c5b (patch)
treea4780995c5c002300ee845e1113252eb6650830f /tools/aapt2/java/JavaClassGenerator.cpp
parent8d1db149b6a435b69affd82af2f8dc5367477f28 (diff)
Fixed issue with prematurely removing display for child activities.
When relaunching a parent activity we finish all its children and set a 2sec timeout to clean up their tasks/stacks/displays if we don't hear anything back. This time might not be sufficient for the client activity to respond back in time depending on what else is happening on the system and we might end-up prematurely removing its display which will cause it to crash. In this specfic case, the client activity which wasn't the focus activity was been relaunched with a bunch of other activities due to a configuration change. Instead of having a timeout for the clean-up we now let the activity go through the normal clean-up process that occurs as it changes states which will eventually clean-up the right states in a max. time of 10secs (on destroy timeout) or sooner. This is in line with activity cycle expections. Bug: 17702043 Change-Id: I484124e07ad32b9056f75ec41af1dd7718488335
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions