Merge change Icba56688 into eclair-mr2
* changes: Ensure that service calls run outside the UI thread (#2235734)
This commit is contained in:
commit
ecfc9e92e5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user