summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2016-05-16 11:30:02 -0700
committerFelipe Leme <felipeal@google.com>2016-05-16 20:42:41 +0000
commit96f33ae24b6235424dc66bf9b445b44579737f74 (patch)
treed843674eaf651c67cc7fd79670e0f023a08a5ea7 /src/com/android
parent2a864fe4e463536f2ab813d6ea8234319a53ff0f (diff)
downloadandroid_packages_providers_DownloadProvider-96f33ae24b6235424dc66bf9b445b44579737f74.tar.gz
android_packages_providers_DownloadProvider-96f33ae24b6235424dc66bf9b445b44579737f74.tar.bz2
android_packages_providers_DownloadProvider-96f33ae24b6235424dc66bf9b445b44579737f74.zip
Implemented onRestrictBackgroundBlacklistChanged().
BUG: 28743623 Change-Id: I314febe06e5516dfa69062da691e0189b051dac5
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/providers/downloads/DownloadThread.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java
index 3bcde17e..da51e9d4 100644
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -883,6 +883,14 @@ public class DownloadThread extends Thread {
mPolicyDirty = true;
}
}
+
+ @Override
+ public void onRestrictBackgroundBlacklistChanged(int uid, boolean blacklisted) {
+ // caller is NPMS, since we only register with them
+ if (uid == mInfo.mUid) {
+ mPolicyDirty = true;
+ }
+ }
};
private static long getHeaderFieldLong(URLConnection conn, String field, long defaultValue) {