mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
c416f02d52
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 |
||
---|---|---|
.settings | ||
assets | ||
compile-only-libs | ||
docs | ||
images | ||
libs | ||
res | ||
src/com/fsck/k9 | ||
tests | ||
tools | ||
.classpath | ||
.gitignore | ||
.project | ||
Android.mk | ||
AndroidManifest.xml | ||
build.properties | ||
build.xml | ||
default.properties | ||
k9mail.iml | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE |