Mms: Device crashes when sending message with attachment.

Need to handle IllegalStateException in addition of the
MMSException when creating draft MMS.

Change-Id: Ieb1618872d7faa472a6fea08c1b3ef1ae0cde183
Author: Jianli Zhang <jianli.zhang@borqs.com>
Signed-off-by: Frederic Predon <frederic.predon@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: 7844
Mms: fix CRASH when the address contains only spaces

Rootcause: If the address contains spaces only,when Mms
format this address,it will get an address string the length
of which is -1. So crash happen when call span(object,0,-1,flag)
function.

Solution: When user press back key to restore the message.
This patch will check the address is valite or not, if it is
invalite,it show a dialog to tell user he can't restore the message.
So it avoid crashing when enter the message again.

Change-Id: Ia847ee6a7c9666376ea6fcc56d18105e6e5474a7
Author: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Jianping Li <jianpingx.li@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: 56634
Mms: Upon already initialized, return immediately

If the sInstance parameter is already initialized then there is
no need to create a new one, this will lead to memory leaks.
Just return immediately.

Change-Id: I68dc53766b5a7e37c591ad253fbd65cf6416658a
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
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
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: I48815debbc369c41076e4705386b0049da9929ca
Author: Erjun Ding <erjunx.ding@intel.com>
Signed-off-by: Erjun Ding <erjunx.ding@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: 23638
Mms: process stops after sharing a video through Messaging

Some logic should be added to deal with different MMS content uri.

testcase: 1> In the messaging application, create a new message
          2> Attach a recorded video
          3> View the video once
          4> View the video twice
          5> Share it through Messaging when playing it

Some logic should be added to deal with different MMS content uri.

Change-Id: I2d7f2ec034823a17ecc517f0861a00958bbb1b38
Author: Frederic Predon <frederic.predon@intel.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: 27059
German translation: SMS delivery notification

Changed the SMS delivery notification, so it doesn't imply that you have just received a message.

Change-Id: I095af7f3a2746cd0d7451200bc0a0a0e517a9469
Fix reference to static fields through instance

START_TAG and END_DOCUMENT are static fields and should be
accessed in a static way as per notes in the official documentation
at http://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html

Change-Id: I6a626f9efe33605d08ea136eca7be8fc9a7e402d
Signed-off-by: Manuel R. Ciosici <manuelrciosici@gmail.com>
Merge "Fix reference to static fields through instance"
am fa79c1a6: Merge "Fix reference to static fields through instance"

* commit 'fa79c1a671342f584282e8e54440a2606d6f9a9a':
  Fix reference to static fields through instance
Import translations. DO NOT MERGE

Change-Id: Idb127b69c286232f299b2b7a53539ff2445204d4
Auto-generated-cl: translation import
Merge "Import translations. DO NOT MERGE"
am f546d84f: (-s ours) Import translations. DO NOT MERGE

* commit 'f546d84f1a68e275ba8d01d3a007fe11581482ea':
  Import translations. DO NOT MERGE
am 23d0bf88: (-s ours) am f546d84f: (-s ours) Import translations. DO NOT MERGE

* commit '23d0bf88b6617ad42c33466d19ba1eac35d20a5b':
  Import translations. DO NOT MERGE
Import translations. DO NOT MERGE

Change-Id: I6819b196fe06d3a4ec3f203d2d779bb72ceba510
Auto-generated-cl: translation import
am fbdbe592: Up the sms/mms recycler limits

* commit 'fbdbe592be42faf5ea3c2fabd5ea84ba19954c88':
  Up the sms/mms recycler limits
am 599b124d: am fbdbe592: Up the sms/mms recycler limits

* commit '599b124db07cf115b542978ee1a2bea3ee73b531':
  Up the sms/mms recycler limits
Merge "Import translations. DO NOT MERGE"
am 3fe0a201: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '3fe0a20140eff5ce66ca9395512e2d052533c9ff':
  Import translations. DO NOT MERGE
am 6fb5642c: (-s ours) am 3fe0a201: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '6fb5642c21cc25fbe55191349978a282ef1ec84b':
  Import translations. DO NOT MERGE