summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2017-05-24 15:14:42 -0700
committerWale Ogunwale <ogunwale@google.com>2017-05-30 18:35:36 -0700
commitbfa81adfbe1819d55737dbbb2fb9157e50dbe022 (patch)
tree1017349d5be86ce6b6947e3a24744a395b0314c6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0b1b1c434650d2f272be7610027d4ddd948715a8 (diff)
Fix unnecessary relaunches when unlocking with fingerprint sensor.
When the device is unlocked using the fingerprint sensor in an orientation opposite to the lockscreen orientation, the app that will be visible is first relaunched in the current lockscreen orientation and then later relaunched in the correct orientation. If the keygaurd is going away then: - Don't let keyguard affect device orientation. We want to use the orientation of the app that will be visible. - Allow the rotation sensor to be enabled even though draw isn't complete so window manager can get the updated or last rotation reading. - Don't clear the previous proposed sensor reading to allow window manager to use the information to update the orientation as needed vs. falling back to the previous orientation. Change-Id: I8369723d6a77f2c602f1ef080371fa7cd9ee094e Fixes: 38494778 Test: Launch an app that doesn't fix orientation like clock, hold the device in landscape, press the power button, unlock the device using the fingerprint sensor, and verify the the app isn't relaunched.
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions