50d934360d51392ac2aa6f11de4d6e1446cf78c9 |
|
29-Jun-2011 |
Makoto Onuki <omakoto@google.com> |
Fix the "onPostExecute executed even when cancelled" issue Renamed onPostExecute to onSuccess and made sure it won't called if a task is cancelled in time. Also removed isCancelled(). To implement it right we should make sure that onPostExecute() isn't finished when setting mCancelled, but it's a bit of a pain to implement right, and we don't really have to use it. Change-Id: I3a0baf504506ffc4952a5553f7098a8415842fa3
/packages/apps/Email/tests/src/com/android/emailcommon/utility/EmailAsyncTaskTests.java
|
d72f7bdf114a21db6aac66a7e83d6b002c8e8ed5 |
|
21-Mar-2011 |
Makoto Onuki <omakoto@google.com> |
Improve EmailAsyncTask Added 6 methods: - execute{Parallel,Serial} - cancelPreviousAndExecute{Parallel,Serial} - runAsyncParallel{Parallel,Serial} (replacement for Utility.runAsync) Bug 4083415 Change-Id: I5ca33000e52fc5265ccc84a6e5acb0d3359d0eb4
/packages/apps/Email/tests/src/com/android/emailcommon/utility/EmailAsyncTaskTests.java
|
ba125ab5ac747bb382dc8fe986dd8f0ed72ca596 |
|
03-Mar-2011 |
Makoto Onuki <omakoto@google.com> |
Fix ANR: Run getPreviewIcon on bg thread The new class EmailAsyncTask might look overkill, but this is what I've been wanting for long time. In many activities we store all AsyncTasks we start to member fields so that we can cancel them in onDestroy(). (e.g. MessageViewFragmentBase.mLoadMessageTask and mReloadMessageTask) With EmailAsyncTask these fields will no longer be necessary. We'll be able to just fire up as many AsyncTasks as we want, and clean them up in onDestroy() with just cancellAllInterrupt(). Bug 3480136 Change-Id: Id8aa1ba1500eee58cfab8b562b95e9ed852b3e29
/packages/apps/Email/tests/src/com/android/emailcommon/utility/EmailAsyncTaskTests.java
|