Loading src/java/com/android/internal/telephony/PhoneSwitcher.java +12 −3 Original line number Diff line number Diff line Loading @@ -336,7 +336,10 @@ public class PhoneSwitcher extends Handler { state.active = false; log("deactivate " + phoneId); state.lastRequested = System.currentTimeMillis(); // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(false, null); } mActivePhoneRegistrants[phoneId].notifyRegistrants(); } Loading @@ -346,7 +349,10 @@ public class PhoneSwitcher extends Handler { state.active = true; log("activate " + phoneId); state.lastRequested = System.currentTimeMillis(); // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(true, null); } mActivePhoneRegistrants[phoneId].notifyRegistrants(); } Loading @@ -361,8 +367,11 @@ public class PhoneSwitcher extends Handler { private void onResendDataAllowed(Message msg) { final int phoneId = msg.arg1; // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(mPhoneStates[phoneId].active, null); } } private int phoneIdForRequest(NetworkRequest netRequest) { NetworkSpecifier specifier = netRequest.networkCapabilities.getNetworkSpecifier(); Loading Loading
src/java/com/android/internal/telephony/PhoneSwitcher.java +12 −3 Original line number Diff line number Diff line Loading @@ -336,7 +336,10 @@ public class PhoneSwitcher extends Handler { state.active = false; log("deactivate " + phoneId); state.lastRequested = System.currentTimeMillis(); // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(false, null); } mActivePhoneRegistrants[phoneId].notifyRegistrants(); } Loading @@ -346,7 +349,10 @@ public class PhoneSwitcher extends Handler { state.active = true; log("activate " + phoneId); state.lastRequested = System.currentTimeMillis(); // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(true, null); } mActivePhoneRegistrants[phoneId].notifyRegistrants(); } Loading @@ -361,8 +367,11 @@ public class PhoneSwitcher extends Handler { private void onResendDataAllowed(Message msg) { final int phoneId = msg.arg1; // Skip ALLOW_DATA for single SIM device if (mNumPhones > 1) { mCommandsInterfaces[phoneId].setDataAllowed(mPhoneStates[phoneId].active, null); } } private int phoneIdForRequest(NetworkRequest netRequest) { NetworkSpecifier specifier = netRequest.networkCapabilities.getNetworkSpecifier(); Loading