diff options
author | Ming-Shin Lu <lumark@google.com> | 2020-12-08 00:19:18 +0800 |
---|---|---|
committer | Ming-Shin Lu <lumark@google.com> | 2020-12-07 17:56:59 +0000 |
commit | 8260aebe7fcc355bd5ac37a19fd369dedc844ea2 (patch) | |
tree | 41f625dd2eaff9831fb7d5a7e865bb8eabe41f3c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | d1ea1214b250539fe35132e7526e94073a6d31b0 (diff) |
Add Null check when excluding IME window surface for snapshot
TaskSnapshotController.createTaskSnapshot crashes when initializing
SurfaceControl$LayerCaptureArgs for excluding NULL IME window surface
control.
As SurfaceControl#nativeCaptureLayers specified the elements in
excludeLayers array should be non-null,
Add a null check before adding excludeLayers when calling
SurfaceControl.captureLayersExcluding to fix the crash issue.
Fix: 174504297
Test: atest WmTests:TaskSnapshotControllerTest#\
testCreateTaskSnapshotWithExcludingIme
Change-Id: Ie6fa7aa4ac61fc49a6235882d700e1e4d8437666
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions