diff options
| author | Prasath Balakrishnan <bpras@codeaurora.org> | 2016-01-25 14:04:05 +0530 |
|---|---|---|
| committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-06-21 19:50:38 +0100 |
| commit | 9354bf650fd3d0fbc3f4a4f8277e1ef1aaafeba6 (patch) | |
| tree | fe65878d02547d440682156cd7fc401a1e44adde /src | |
| parent | 3718ef2d361bcfdce11546b734e740dbe55a7a51 (diff) | |
| download | android_frameworks_opt_telephony-9354bf650fd3d0fbc3f4a4f8277e1ef1aaafeba6.tar.gz android_frameworks_opt_telephony-9354bf650fd3d0fbc3f4a4f8277e1ef1aaafeba6.tar.bz2 android_frameworks_opt_telephony-9354bf650fd3d0fbc3f4a4f8277e1ef1aaafeba6.zip | |
Fix issue when two MMS requests with same priority on both SUB's
When executing MMS request on one SUB and a new MMS request
is received on other SUB. First execute the current request
before handling new request.
CRs-Fixed: 958989
Change-Id: I57fee028d9ac0e91d94eb70f8ea75c7fcb5f7087
Diffstat (limited to 'src')
| -rw-r--r-- | src/java/com/android/internal/telephony/dataconnection/DctController.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/dataconnection/DctController.java b/src/java/com/android/internal/telephony/dataconnection/DctController.java index 091633550..e1c8bace5 100644 --- a/src/java/com/android/internal/telephony/dataconnection/DctController.java +++ b/src/java/com/android/internal/telephony/dataconnection/DctController.java @@ -544,11 +544,23 @@ public class DctController extends Handler { int priority = -1; int subId; + int activePhoneId = -1; + for (int i = 0; i < mDcSwitchStateMachine.length; i++) { + if (!mDcSwitchAsyncChannel[i].isIdleSync()) { + activePhoneId = i; + break; + } + } + for (RequestInfo requestInfo : mRequestInfos.values()) { logd("getTopPriorityRequestPhoneId requestInfo=" + requestInfo); if (requestInfo.priority > priority) { priority = requestInfo.priority; topSubId = requestInfo.request.networkCapabilities.getNetworkSpecifier(); + } else if (priority == requestInfo.priority) { + if (requestInfo.executedPhoneId == activePhoneId) { + topSubId = requestInfo.request.networkCapabilities.getNetworkSpecifier(); + } } } if (TextUtils.isEmpty(topSubId)) { |
