summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2017-08-04 20:14:22 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-08-04 20:14:22 +0000
commit6ac3793325c1e4255eac0ed4a922590ef3b34fa5 (patch)
tree3587e55156998d9515081000b9118b0228ecaf63
parentb50651e390c1494d6abba1039361d4f5caf0eaae (diff)
parent211a7d59f4e750f3724d0122beb58fd806dd14bf (diff)
Merge "WifiStateMachine: Pass in looper to PhoneStateListener" into oc-dr1-dev
am: 211a7d59f4 Change-Id: Ie81d811753491ab4e0b04178fc413ca0cdd7db6c
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index 67713c2e1..ed2bc9dc0 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -949,7 +949,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
mFacade.makeSupplicantStateTracker(context, mWifiConfigManager, getHandler());
mLinkProperties = new LinkProperties();
- mPhoneStateListener = new WifiPhoneStateListener();
+ mPhoneStateListener = new WifiPhoneStateListener(looper);
mNetworkInfo.setIsAvailable(false);
mLastBssid = null;
@@ -3783,6 +3783,10 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
* Listen for phone call state events to set/reset TX power limits for SAR requirements.
*/
private class WifiPhoneStateListener extends PhoneStateListener {
+ WifiPhoneStateListener(Looper looper) {
+ super(looper);
+ }
+
@Override
public void onCallStateChanged(int state, String incomingNumber) {
if (mEnableVoiceCallSarTxPowerLimit) {