Themes: fix custom image settings

Signed-off-by: baked <travp624@gmail.com>
Stop previous TaskStack worker

Each time we delete all threads, a new TaskStack thread is started.
We need stop the previous one to avoid over memory consumption.

Change-Id: Ibee8dd7b8e757df0686c7989dc7d9878f9ef5102
Signed-off-by: Emmanuel Berthier <emmanuel.berthier@intel.com>
Avoid ConversationList/ComposeMessage activity leaks

First, ConversationList activity leak, Contact.mListeners are only unbound
when ListItemViews are recycled, without considering the activity exit case
or message delete case.
Second, ComposeMessage activity leak: use SoftReferences instead of
HardReferences for the slideshow cache.

Change-Id: Ic235b31403b26aba16bf6b8b51bff7b4c6f68d98
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Move bubble_none drawable to the correct folder.

Signed-off-by: baked <travp624@gmail.com>
Fix Mms notification not always clearing.

This is a two fold commit based on work done by Ian Ling to CarbonRom.

https://github.com/CarbonDev/android_packages_apps_Mms/commit/b3a831a6e3019d256163b23870e0f4e0134fce16

Clear notification when tapped
Change-Id: I1e660088436e36efdf4bfb000f273b63f5462ae0

https://github.com/CarbonDev/android_packages_apps_Mms/commit/21c851e139c56f387c83e11d12d2a2fa8e0c3ff0

Mms: Mark messages read if they are on-screen when phone is unlocked
Previous behavior: Open Messaging app, open one of the existing conversations,
and then lock the phone. Receive a new text message in that conversation.
Unlock the phone to reveal the new message, but the notification does not
disappear despite the new message having been read.

This is due to onResume() not getting called read when returning to
the app from the lockscreen, so the new message never gets marked as read!

The solution is to use onWindowFocusChanged() as a failsafe for this scenario,
as this DOES get called when you come in from the lockscreen. Now the notification
disappears correctly.

Change-Id: I225a31bea9abe553c1466e070f4c9b50245f05c5
Signed-off-by: baked <travp624@gmail.com>
Better QuickMessage layout for mdpi

Change-Id: I07a06ecf23580982ac442aa95004e46c3d202fc5
Mms: disable SplitActionBar

This makes the UI more consistent with newer Email app look.

Screenshots:
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/email.jpg
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/mms.jpg

Change-Id: I71c287f258b9cb8f4b94456ecc9d4034d4680525
Mms: Prevent popup window from closing

Popup window will close if pressed outside of it.

This commit disables touches outside the popup.

10x Revertron

Change-Id: Ife491d8b58d1b32d59760eb10a6e10cb67969974
Mms: update new messages notification count

Mms should notify the system about how many new sms/mms has (including those ones under conversations)
to the notification system. This allow the system to display the number of events for Mms app according its
settings

Change-Id: I15953283ae657b770869f611a886452199550d67
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Resize the image in background

Decoding and resizing of the image is done in
Adapter-getView method which runs in the main
thread. As a result edit screen resumes after
few seconds, mean time if user flings on that
activity it leads to ANR.

From getView method, adopt lazy loading - spawn
the thread which will decode and resize the
image, upon receiving the requested resized-image
set the image to the view.

Change-Id: I7500afc2fcc4fd7bed8f256d19cbc22ee9baeda0
CRs-Fixed: 550421
Mms: add MobilePaperShowActivity

This activity is from CAF, which allows incoming MMS messages which
appear as slide shows to be broken up into their separate images, while
still exposing the slideshow functinoality via an overflow menu button.

This helps alleviate the symptom of when an iPhone will send more than
one image in one MMS message and Mms app interpreting it as a slideshow
instead of separate images.

This commit is essentially a squash of:
https://www.codeaurora.org/cgit/quic/la/platform/packages/apps/Mms/log/src/com/android/mms/ui/MobilePaperShowActivity.java?h=LNX.LA.3.7.1&showmsg=1

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

Conflicts:
	res/values/bs_strings.xml