Ensure that service calls run outside the UI thread (#2235734)
Change-Id: Icba566884f3b994c8a4ccc4b8658c40b133a3509
This commit is contained in:
parent
c2b42a4d67
commit
3379c51569
@ -85,7 +85,11 @@ public class EmailServiceProxy implements IEmailService {
|
||||
if (DEBUG_PROXY) {
|
||||
Log.v(TAG, "Service " + mClass.getSimpleName() + " connected");
|
||||
}
|
||||
// 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