Ensure that service calls run outside the UI thread (#2235734)

Change-Id: Icba566884f3b994c8a4ccc4b8658c40b133a3509
This commit is contained in:
Marc Blank 2009-12-02 15:01:06 -08:00
parent c2b42a4d67
commit 3379c51569

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