am ecfc9e92: Merge change Icba56688 into eclair-mr2

Merge commit 'ecfc9e92e5910fa47f2b6e4d699e951ce81ab99e' into eclair-mr2-plus-aosp

* commit 'ecfc9e92e5910fa47f2b6e4d699e951ce81ab99e':
  Ensure that service calls run outside the UI thread (#2235734)
This commit is contained in:
Marc Blank 2009-12-09 15:41:42 -08:00 committed by Android Git Automerger
commit 936886206b

View File

@ -85,7 +85,11 @@ public class EmailServiceProxy implements IEmailService {
if (DEBUG_PROXY) {
Log.v(TAG, "Service " + mClass.getSimpleName() + " connected");
}
runTask();
// Run our task on a new thread
new Thread(new Runnable() {
public void run() {
runTask();
}}).start();
}
public void onServiceDisconnected(ComponentName name) {