Implemented onRestrictPowerChanged().
Felipe Leme [Tue, 3 May 2016 15:41:46 +0000 (08:41 -0700)]
BUG: 28521946
Change-Id: I31658e680e67da9e1a420a9749a67949cfe09689

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

index 3bcde17..c27320d 100644 (file)
@@ -871,6 +871,12 @@ public class DownloadThread extends Thread {
         }
 
         @Override
+        public void onRestrictPowerChanged(boolean restrictPower) {
+            // caller is NPMS, since we only register with them
+            mPolicyDirty = true;
+        }
+
+        @Override
         public void onRestrictBackgroundChanged(boolean restrictBackground) {
             // caller is NPMS, since we only register with them
             mPolicyDirty = true;