Merge change Icba56688 into eclair-mr2

* changes:
  Ensure that service calls run outside the UI thread (#2235734)
This commit is contained in:
Android (Google) Code Review 2009-12-07 19:00:02 -08:00
commit ecfc9e92e5

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) {