OSDN Git Service

DO NOT MERGE Prevent ImageWallpaper from keeping crashing
authorAhan Wu <ahanwu@google.com>
Tue, 2 Jun 2020 20:21:45 +0000 (04:21 +0800)
committerVasyl Gello <vasek.gello@gmail.com>
Wed, 5 Aug 2020 02:43:44 +0000 (02:43 +0000)
commit6b94d503abe0ddb81ebeedcb278398d8e8294a9d
treefd40d7cb95a3cd75a7f2ef0ab0c632a911d23cdc
parentd8389d36e512d19e5ac788cc19e15e55dc361e77
DO NOT MERGE Prevent ImageWallpaper from keeping crashing

GLUtil.texImage2D may throw exception that indicates bad image format.
We should catch this exception, otherwise, systemui may keep crashing.

Bug: 156087409
Test: Set a 16-bit rgb image as wallpaper
Test: Systemui shouldn't keep crashing
Change-Id: I6c9715c049b7848ecd5559ab76612a98dcd4ee6f
(cherry picked from commit a3bff94e184590351fd95f630e8b8313d1d2053b)
packages/SystemUI/src/com/android/systemui/ImageWallpaper.java