summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-09-08 23:34:15 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-12-01 14:51:27 +0000
commit0c713fd09052efca9a0a9ba266311c57ae8c3a5d (patch)
tree794c08dbea1e821f6f4aaea21ce98b55e7522565 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent42cdcba55b3482cf9c5ed6805c7683a98b35be6e (diff)
Use current fullscreen opaque window as insets control target
This fixes stats bar blinking when switching from an app that hides status bar to another that shows status bar. It is caused by the TopFullscreenOpaqueWindow in DisplayPolicy will be updated according to visibility. There may be an intermediate state that the insets control target is still the previous window, then the transient showing bar will be hidden a while. It is tempting to make canAffectSystemUiFlags accept the activity with mVisibleRequested=true so TopFullscreenOpaqueWindow can be updated earlier. But that will break status bar hiding animation when switching from an app that shows the bar to another that hides the bar. Also fix: - The original insets source is modified when getting insets state for client because the default "new InsetsState" will reuse the given insets sources. - Redundant invocation of updateBarControlTarget when calling abortTransient from updateBarControlTarget. Fixes: 168023253 Bug: 160458371 Test: InsetsPolicyTest#testControlsForDispatch_topAppHidesStatusBar Change-Id: I60f29dba81b0273a189ddd0a48a2e84155177f5b Merged-In: I60f29dba81b0273a189ddd0a48a2e84155177f5b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions