Merge change 22984 into eclair
* changes: fix AbstractThreadedSyncAdapter to actually cancel syncs
This commit is contained in:
@@ -105,7 +105,8 @@ public abstract class AbstractThreadedSyncAdapter {
|
|||||||
// check it and when we use it
|
// check it and when we use it
|
||||||
synchronized (mSyncThreadLock) {
|
synchronized (mSyncThreadLock) {
|
||||||
if (mSyncThread != null
|
if (mSyncThread != null
|
||||||
&& mSyncThread.mSyncContext.getISyncContext() == syncContext) {
|
&& mSyncThread.mSyncContext.getISyncContext().asBinder()
|
||||||
|
== syncContext.asBinder()) {
|
||||||
mSyncThread.interrupt();
|
mSyncThread.interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user