summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-02-23 23:20:26 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-02-23 15:25:21 +0000
commit7277eab6884c621d394fa957ead35bd380ef203d (patch)
tree95df377229a0d77f70be8dad6311372206c7d218 /libs/androidfw/AttributeResolution.cpp
parentde23e70472d14a7db73dae5014d7fa37a4e39b0d (diff)
Update orientation before executing transition by starting window
The issue case only happens with splash starting window (new task), and the activity is going to start in a different orientation. Because usually updateOrientation() in this case is called from activityPaused() of previous activity or attachApplication for cold launch (both route to ensureVisibilityAndConfig). But the starting window may be drawn before that, then the transition still runs in old orientation and then runs another rotation animation. Also use isReportedDrawn() to replace isVisible(). Because the original usage is to handle the case back from a non-occluding activity to an existing visible activity. Since the condition doesn't depend on transition, it can work both for legacy and shell transition. Bug: 218659058 Test: atest com.android.server.wm.flicker.launch.OpenAppColdTest Change-Id: I4ecf64a496cffb628deaded6fe8ab031d42005cb
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions