From 629a67c5ac33409ebccf13284505a4cadc65656a Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 2 Jun 2017 15:43:26 -0700 Subject: [PATCH] Migrate ColorExtractionService to JobService IntentService cannot be run in the background, so moving to JobService prevents us from crashing if the wallpaper is changed while we aren't running. Bug: 62065291 Change-Id: Ie0c887e36d0ced43a0b9ab8136bf55eb37697489 --- AndroidManifest-common.xml | 3 +- src/com/android/launcher3/Utilities.java | 3 +- .../dynamicui/ColorExtractionService.java | 89 +++++++++++++------ .../launcher3/dynamicui/ExtractionUtils.java | 10 ++- 4 files changed, 73 insertions(+), 32 deletions(-) diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index 3a60a9878f..ab582feb90 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -82,7 +82,8 @@ + android:process=":wallpaper_chooser" + android:permission="android.permission.BIND_JOB_SERVICE">