Implemented onRestrictPowerChanged().
[android/platform/packages/providers/DownloadProvider.git] / 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;