Fix a crash when scrolling while a SMS is delayed.

Change-Id: I73f2d5f0e44dd80955db58e29ce1712cbf4e0ebb
Mms: Handle null inputstream from missing file but valid uri.

  - For when you adb restore, an image may corrupt or be missing,
    therefore, we can't always assume that our inputstream from a
    what appears to be a valid file uri won't be null.

Change-Id: I78367c4808fb9967bb750b8713f2cec75805dc05
mms: do not update seen field in markAsUnread operation

This prevents to a seen thread to be notified again after mark as unread

Change-Id: Ib97ded493cdddb261666cffb37bf2f82e827d6a3
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
mms: markAsUnread only read items (ignore seen flag)

Do not mark threads that are only seen

Change-Id: Iffef7823663918ee0dcbecc0241cde71e5a25bca
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Mms: Handle Disk Storage Full Crash

- When a device is out of disk storage space, the messages apk will crash
and become unresponsive
- This changes now handles the SQLiteFullException thrown by
the app and displays a toast to the user to indicate that the
storage is full.
CRs-Fixed: 487749

Change-Id: I89956d06e5fdd008a31802c10f33364eb327dff7
(cherry picked from commit 999891459b98e5747108424eac3bf54d66a1255d)
(cherry picked from commit 640fea192b8dcaf90d637f1ffe9d694203db16da)
(cherry picked from commit 30112177d241cfc076e7c036e9ee08ddedd1787f)
mms: cleanup markAsUnread code

Change-Id: I66f130d3d05e547106a6658208d95a147a7a9a18
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
mms: markAllAsUnread is never called

The actual markAllAsUnread code is never called. It requires a new menu to be launched.

Change-Id: If620ca3c41aa091e065ff7646091bc118a072e5d
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/menu/conversation_list_menu.xml
Per conversation notification settings/ringtones

Added per conversation options. Right now the only options for each
conversation is custom notification ringtone, vibration settings.

This is useful as for each thread, you can have a custom ringtone.

The implementation is done with a custom database. This is ideal as we
don't want to modify sqlite database from google as if they upgrade, we
will run into a lot of trouble.

Github branch:
https://github.com/shuhaowu/android_packages_apps_Mms/tree/per-thread-options

PS4: Minor changes from comments.

Change-Id: I8e8e533cdcda14b3bc6adea0bb0db04cfbf0ce2b
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/values/bs_strings.xml
Mms: fixup a extra semicolon .

Eclipse doesn't like this. Let's fix it.

(Screw you eclipse tho)

Change-Id: I0def19dc786bab1c292ea7c986f2fe9a510147e7
mms: Fix NPE when attaching slides

Issue: BACON-908

Change-Id: I7cc2fa975852cb08612849266529ee8aaf25b071