Go to file
Fiouz c416f02d52 Improve BACK button handling for MessageView
Remove memory leak from referencing MessageView context from the
Intent that is created to go back to MessageList. MessageView is no
longer hardcoded to go back to MessageList, it instead uses an Intent
given at creation to get back to the originating Activity.

Try our best to restore the MessageList in its previous state when
"Manage BACK button" option is enabled:
Since MessageList lives in its own task, we look for the previous
active task and check whether its top activity matches it. If it does,
we just finish MessageView and Android will automatically restore the
previous task. If it doesn't, we launch the originating Intent (and
MessageList state will be lost).

If option is off, we get the regular Android behavior: got back to the
previous screen, whenever it's the MessageList or another application
if the user long-pressed HOME.

The consequence of this is the need for a new permission in order to
check the previous active task: android.permission.GET_TASKS
2011-06-08 22:53:23 +02:00
.settings Eclipse cleanup + import settings 2011-06-07 20:18:11 +02:00
assets Fixed HTML to get rid of some warnings 2011-04-21 00:02:11 +02:00
compile-only-libs Removed dependency on (external) commons-codec and commons-logging 2011-02-26 17:36:18 +01:00
docs Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
images Add button to allow editing of quoted message in HTML mode by dropping user back to text mode. Fixes issue 2959. 2011-02-05 15:14:02 -08:00
libs Replaced our local copy of jzlib with a clean jar built from jzlib 1.0.7 2011-01-31 18:26:01 +00:00
res Point app_revision_url to updated URL and remove duplicates 2011-06-08 12:58:37 +02:00
src/com/fsck/k9 Improve BACK button handling for MessageView 2011-06-08 22:53:23 +02:00
tests Renamed package name corresponding to the directory 2011-04-13 02:56:25 +09:00
tools Restore tools/build-beta to its former glory. It can now build a "K9 2011-03-16 17:59:25 -04:00
.classpath Removed dependency on (external) commons-codec and commons-logging 2011-02-26 17:36:18 +01:00
.gitignore Added .gitignore file to prevent adding local.properties, bin/ and gen/ to git tracking 2011-06-02 21:17:55 +02:00
.project fix the eclipse project name 2010-11-26 03:53:18 +00:00
Android.mk added libraries to Android.mk 2011-05-05 21:24:39 +02:00
AndroidManifest.xml Improve BACK button handling for MessageView 2011-06-08 22:53:23 +02:00
MODULE_LICENSE_APACHE2 Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
NOTICE Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
build.properties Bump us up to android-9 so we can have strict mode for development 2010-12-24 18:54:56 +00:00
build.xml fix a bug in our git-tag target. 2011-04-08 14:03:04 +10:00
default.properties Set encoding to utf8 to get rid of javac warnings 2011-02-21 01:55:57 +01:00
k9mail.iml Update .iml for IntelliJ IDEA 10.5 (Android SDK is now the platform SDK); remove unused compile only libs. 2011-05-24 12:43:32 -07:00