summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-07-28 20:48:43 -0700
committerBryce Lee <brycelee@google.com>2017-07-31 08:24:23 -0700
commit00d586d8f0bcd6233fd21970582ec27621fbceed (patch)
treeea438a806df6f398b8de0a4c46b78feb1bc6a628 /rs/java/android/renderscript/ProgramStore.java
parent3cace2a1482784ace8b8f732bfbb646b9ef612df (diff)
Allow foreground AppWindowToken to influence orientation.
It is possible for an activity to request an orientation after finish has been called, causing the system orientation to be re-evaluated. Since the activity is closing, it will no longer be eligible to influence orientation. If another stack/task is brought to the foreground, it will as well won't be able to participate since it is not considered an opening app and won't be visible. As a result, we set the orientation to unspecified, leading to the foreground activity to be resumed in the wrong orientation. This changelist addresses the issue by allowing an AppWindowToken to participate in orientation calculations if it is not closing and is on top of the wm hierarchy, regardless of its visibility. Change-Id: I0f316d6d824398d084c7648cf2dc2c2d07b4410d Fixes: 63982461 Fixes: 63513655 Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests#testGetOrientation Test: go/wm-smoke
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions