summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-07-09 03:14:01 (GMT)
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-07-09 03:14:01 (GMT)
commit478349d7e13c5731ad0ac02bc501e2144c3f87c1 (patch)
tree13c905582c7705bde7d74bffab25f886e01088f2
parentb58af35565a543375930815b370ee9e293990b18 (diff)
parentbfec3085e848dbf3c08a33b5ca640a67f2625a0f (diff)
downloadandroid_packages_providers_DownloadProvider-478349d7e13c5731ad0ac02bc501e2144c3f87c1.zip
android_packages_providers_DownloadProvider-478349d7e13c5731ad0ac02bc501e2144c3f87c1.tar.gz
android_packages_providers_DownloadProvider-478349d7e13c5731ad0ac02bc501e2144c3f87c1.tar.bz2
Snap for 5713042 from bfec3085e848dbf3c08a33b5ca640a67f2625a0f to qt-qpr1-release
Change-Id: I6ebfe4503f7717b572581bd8555c5964d65dd86b
-rw-r--r--src/com/android/providers/downloads/DownloadJobService.java1
-rw-r--r--src/com/android/providers/downloads/Helpers.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/DownloadJobService.java b/src/com/android/providers/downloads/DownloadJobService.java
index d09738c..e1b2023 100644
--- a/src/com/android/providers/downloads/DownloadJobService.java
+++ b/src/com/android/providers/downloads/DownloadJobService.java
@@ -81,6 +81,7 @@ public class DownloadJobService extends JobService {
@Override
public boolean onStopJob(JobParameters params) {
final int id = params.getJobId();
+ Log.d(TAG, "onStopJob id=" + id + ", reason=" + params.getStopReason());
final DownloadThread thread;
synchronized (mActiveThreads) {
diff --git a/src/com/android/providers/downloads/Helpers.java b/src/com/android/providers/downloads/Helpers.java
index 7b4cb4e..565aa52 100644
--- a/src/com/android/providers/downloads/Helpers.java
+++ b/src/com/android/providers/downloads/Helpers.java
@@ -161,7 +161,7 @@ public class Helpers {
// When this download will show a notification, run with a higher
// priority, since it's effectively a foreground service
if (info.isVisible()) {
- builder.setPriority(JobInfo.PRIORITY_FOREGROUND_APP);
+ builder.setPriority(JobInfo.PRIORITY_FOREGROUND_SERVICE);
builder.setFlags(JobInfo.FLAG_WILL_BE_FOREGROUND);
}