summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2016-05-23 17:00:24 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-05-23 17:00:24 +0000
commit252a57a58d7173cc379ad18ea2942225c5a2cdbb (patch)
treefe318d8140aa96352aab96701c4775f6a0486d23
parent7c7c65c372b55da9e9662a708884fca18ddfebc0 (diff)
parent5de778c46065cf6a72c2c0d124c0ac882e5b55fe (diff)
Merge "Inform WifiConnectivityManager screen state" into nyc-dev
am: 5de778c460 * commit '5de778c46065cf6a72c2c0d124c0ac882e5b55fe': Inform WifiConnectivityManager screen state Change-Id: Iff14d57ecc30ce3a80adf024c1147dee1acb13b3
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index c92d0c803..da39371c8 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -4706,6 +4706,11 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
// Set the right suspend mode settings
mWifiNative.setSuspendOptimizations(mSuspendOptNeedsDisabled == 0
&& mUserWantsSuspendOpt.get());
+
+ // Inform WifiConnectivtyManager the screen state in case
+ // WifiConnectivityManager missed the last screen update because
+ // it was not started yet.
+ mWifiConnectivityManager.handleScreenStateChanged(mScreenOn);
}
mWifiNative.setPowerSave(true);