Send 'reject call with sms' on the correct subscription.

Send sms on the subscription on which the call is rejected.
Get subscription info from the intent 'ACTION_RESPOND_VIA_MESSAGE'
on which the call is rejected.

Change-Id: I7d16744139211cd5c44015d4794429f9020501d6
CRs-Fixed: 594214
Mms: Misc MMS fixes.

- Add PDP activation timeout logic to abort current transaction.
- Fallback to defaultSmsSubId in case of invalid subId.
- Deactivate current MMS PDP quickly after current transaction completion
  if next pending transaction is for different subId.
- Use new getNetworkInfo api in place of legacy one.
- Use subId in NetworkRequest.
- Dont allow MMS in airplane mode but allow if current RAT is iwlan
irrespective of airplane mode status.

Change-Id: Iabb3a7d2f49505581a8af7750c83732b292809de
Merge "Send 'reject call with sms' on the correct subscription."
The draft still exists after forwarding mms to the same sender

Forward message will be saved as draft before sent, and it will reload
this draft after come back to the current thread.

Do not load the draft for the same recipient address when forwarding
mms.

Change-Id: I2cc873a9bcbdf0e6481391a0237eb1d19f40d137
CRs-Fixed: 568255
Merge "Mms: Misc MMS fixes."
Mms: Handle NPE in TransactionService

If client directly updates the Mms database (as in the case of BT) without
updating phoneId in single sim scenario, default phoneId of -1 is used
from the database. This causes an NPE in TransactionService when trying to
get the list of subIds for the phoneId. Fix this by using default sms phoneId
in such scenarios.

CRs-Fixed: 740888

Change-Id: I263282c97551c624a2e7204f9f7f7dc0b8dcd1a5
Mms: Set state to failed.

- setState(TransactionState.FAILED) got missed out from the
commit Iabb3a7d2f49505581a8af7750c83732b292809de.

Change-Id: I08d0e4c2644d0fb6526c5a6aad3e63853050f97a
Merge "Mms: Set state to failed."
Merge "Mms: Handle NPE in TransactionService"
Merge "The draft still exists after forwarding mms to the same sender"
Add support for handling of subscription activation

Process pending MMS messages when subscription got activated

Change-Id: I0684dc2cf7c8582f5a37b504a13edd7a9e122536
CRs-Fixed: 740243
Merge "Add support for handling of subscription activation"
Mms: Use new api isMmsDataConnectivityPossible.

- Use new api to know if it is worth the try for current
  MMS transaction.
- Modify the PDP ACTIVATION wait timer to 60 seconds.
- Mark transactions as failed during abort due to pdp activation
  timeout.
- Show popup if MMS can not be sent/recv due to Mobile data UI being
  OFF.
- Process pending mms once MobileData is turned ON.
- Process pending mms once Airplane mode is turned OFF.
- Enable download button as soon as possible.

Change-Id: If691c00fee61310c3834413eb17c4d42cdb4cae3
Merge "Mms: Use new api isMmsDataConnectivityPossible."
Mms: Fix display emty message on sim card when click sim full notification

Receive sim2 card state change event When loading sim1
card messages. It'll refresh to sim2 card messages.

Do nothing if receive other sim card state change event.
and change to default sub value to -1 and set the subId
and icc uri to single card mode's default value.

CRs-Fixed: 702966

Change-Id: I69893262a594cdda3edd3cb4ba314b17d05d76e6
Mms: Fix Content Type 'image/gif' is not present in the MM

Image will be resized before sending and media contentType will be
change to 'image/jpeg'.

Don't resizen for gif image.

CRs-Fixed: 755422

Change-Id: I495248a8fc548facc611ffddc3a6962ceb3e99ec
Mms: Fix "draft" can't update after delete draft message in folder mode.

Don't update the state of draft cache after delete draft message.

Update draft state if delete draft message successfully.

CRs-Fixed: 761706

Change-Id: I171cc5a400c008c44d75e5590a13d4de4cf0a60b
Mms: Fix set Text/Multimedia message limit does not work.

Only when sending or receiving a message in this thread, it will
check and delete old messages.

After set Text/Multimedia message limit, check threads over
limit and delete old messages.

CRs-Fixed: 760604

Change-Id: I79904fdb653d578c2922a5f57689715b4c7e1623
Merge "Mms: Fix Content Type 'image/gif' is not present in the MM"
Merge "Mms: Fix display emty message on sim card when click sim full notification"