Mms: Catch UnsupportContentTypeException

The original code has not catched "Unsupported Content-Type" exception
resulting in force close if an mms containing an unsupported content
type is opened.

Change-Id: I9b578e2fd61ba5df9dbfbe9e6e28fb276ef89666
Author: Haixiong Zheng <haixiong.zheng@borqs.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 5339
Add extra checking for expired mms downloading

Change-Id: If5d995c32aad71695c15a9a2a781d20312416a79
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Mms: Fix javacrash in com.android.mms due to memory leak

when the UriImage resize the picture. It will not close the
InputStream and OutputStream.

Change-Id: I80fa1eb3726308fe75d74357e0b9782759de3393
Author: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28037
Mms: Process has stopped after dragging progress

testcase 1> create a slideshow mms and play it. Tap progress bar
                continuously until play finished.
         2> create a slideshow mms and play it. Tap progress bar
                continuously when rotate the screen

We have to set the seek bar change listener to null,otherwise if
the activity stop during tap progress bar continuously, window
will leak.

Change-Id: I206d35b91e04de06c2073c3fb0d9176da6adc81c
Author: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: b533 <b533@borqs.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28634
Mms: Notify user of Send SMS failure due to FDN

Upon Send SMS failure due to destination number or
service center number not present in the FDN list,
failure is not notified to the MessageNotification.
Due to this Sms remains in Sending state even
after the SMS send has failed.

This patch fixes the issue by notifying the message
failure and also moving the message to respective folder.

Change-Id: I1f8dfe2d9b276c8c6f4d921c2c147a8ef90643e6
Author: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48558
Mms: Cursor doesn't appear when pressing up/down/right/left key

When pressing up/down/right/left key on the keypad, the cursor
doesn't appear in the messagebox.
This is because the layout container is not focusable.

Change-Id: I82bfb417ce3b12ec55b5d8058e866282ab2dc66a
Author: b533 <b533@borqs.com>
Signed-off-by: edingX <erjunx.ding@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 23638
Mms: Add a check on the Media model

In case there is no image and no video in the slideshow, the
media model might be null.
Add a check to avoid a null pointer access.

Change-Id: I55d63b226835acfa53199eee0d706b8c5ae553c2
Author: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28037