Merge "Invoke Both onDataConnectionStateChanged Methods"

This commit is contained in:
Nathan Harold
2019-01-17 21:23:50 +00:00
committed by Gerrit Code Review

View File

@@ -805,9 +805,11 @@ public class PhoneStateListener {
PhoneStateListener psl = mPhoneStateListenerWeakRef.get();
if (psl == null) return;
Binder.withCleanCallingIdentity(
() -> mExecutor.execute(
() -> psl.onDataConnectionStateChanged(state, networkType)));
Binder.withCleanCallingIdentity(() -> mExecutor.execute(
() -> {
psl.onDataConnectionStateChanged(state, networkType);
psl.onDataConnectionStateChanged(state);
}));
}
public void onDataActivity(int direction) {