OSDN Git Service

Fix skia crash in widget preview loading
authorAdrian Roos <roosa@google.com>
Tue, 15 Apr 2014 19:07:49 +0000 (21:07 +0200)
committerAdrian Roos <roosa@google.com>
Wed, 16 Apr 2014 12:16:14 +0000 (14:16 +0200)
commit65d60e21ec22e3bf03ba39f7a0be24df2cc914a2
treea90b06404e267423b5b4522f9bdf6968d4150d3c
parentb6ecd7815970fd2080b1856259d25f6a0ab7f48f
Fix skia crash in widget preview loading

This fix works making sure all drawables are mutated before drawing
them in the background. Mutation has to be executed on the main
thread because that operation is not thread safe.

Bug: 12525890
Change-Id: Id7bdf9cf48d3e7b7f31938bdea4a3bf1632cf337
src/com/android/launcher3/MainThreadExecutor.java [new file with mode: 0644]
src/com/android/launcher3/WidgetPreviewLoader.java