summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2016-01-20 19:52:22 -0800
committerChong Zhang <chz@google.com>2016-01-21 13:32:33 -0800
commiteb22e8ed42bb146060e8ffc94444f70ea47fda04 (patch)
tree28a8fc5c9a58bad6d7c68aba5526d9014ad658ad /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb7a73360b50ede90b4331dd041eef59f002dc131 (diff)
Fixes for broken saved surface
- Reset and restore the visibility flags and hasSurface states when surface is saved or restored. When the surface is in saved stated, we have to make the rest of the system believe that the window has no surface. - Set app windows to 'mExiting' when we start a transistion because window manager changes the visibility of the app. We can't rely on receiving a relayoutWindow from the app to invisible. We need to mark it exiting so that when the transition is done, the surfaces get removed (or saved if possible) promptly. - We need to save the surface if the app token is the last one in a task, regardless of whether it's visible, this means the whole task is going into background. But if the app has another visible token on top of it, we don't need to save it. For example one activity launches another activity, in this case we don't want to save the surface of the activity on the bottom. bug: 26573100 Change-Id: Id845f87b30cda1cebcc12ad2ac8dbf19a068a86e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions