diff options
author | Felipe Leme <felipeal@google.com> | 2016-05-03 08:41:46 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2016-05-03 08:41:46 -0700 |
commit | f976f100cda564d3b602cf4b5e0a2309c0f05589 (patch) | |
tree | 6c0d588e86ed763f0296dc2b64a5244aed3a907d /src/com | |
parent | 693eb2fb2f6b66999645b237ae5ef16c7329aaf6 (diff) | |
download | android_packages_providers_DownloadProvider-f976f100cda564d3b602cf4b5e0a2309c0f05589.tar.gz android_packages_providers_DownloadProvider-f976f100cda564d3b602cf4b5e0a2309c0f05589.tar.bz2 android_packages_providers_DownloadProvider-f976f100cda564d3b602cf4b5e0a2309c0f05589.zip |
Implemented onRestrictPowerChanged().
BUG: 28521946
Change-Id: I31658e680e67da9e1a420a9749a67949cfe09689
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/providers/downloads/DownloadThread.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index 3bcde17e..c27320d6 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -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; |