Implemented onRestrictBackgroundBlacklistChanged().
Felipe Leme [Mon, 16 May 2016 18:30:02 +0000 (11:30 -0700)]
BUG: 28743623

Change-Id: I314febe06e5516dfa69062da691e0189b051dac5

src/com/android/providers/downloads/DownloadThread.java

index 3bcde17..da51e9d 100644 (file)
@@ -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) {