Skip to content
Commit 9035d72c authored by Juho Ha's avatar Juho Ha
Browse files

Disable task snapshot when image size is invalid

Since devices such as IoT can have no screen, the size of
graphic buffer can be 1x1. In this case the WindowManager crashes
while making bitmap with reduced size.
To prevent the crash, disabled snapshotting on this screen.

Bug: 62401135
Test: Device without the display does not crash when app dies.
Change-Id: I367008405e6238baf3e56974f7d363ea81dfa916
parent 36ae6b8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment