mirror of https://github.com/M66B/FairEmail.git
Small improvements
This commit is contained in:
parent
8879e19b7e
commit
c5be2dc2af
|
@ -2314,12 +2314,14 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
EntityLog.log(this, EntityLog.Type.Account, account,
|
EntityLog.log(this, EntityLog.Type.Account, account,
|
||||||
account.name + " closing");
|
account.name + " closing");
|
||||||
|
|
||||||
|
// Cancel purge
|
||||||
getMainHandler().removeCallbacks(purge);
|
getMainHandler().removeCallbacks(purge);
|
||||||
|
|
||||||
// Stop watching operations
|
// Stop watching operations
|
||||||
Log.i(account.name + " stop watching operations");
|
Log.i(account.name + " stop watching operations");
|
||||||
final TwoStateOwner _owner = cowner.value;
|
final TwoStateOwner _owner = cowner.value;
|
||||||
if (_owner != null)
|
if (_owner != null) {
|
||||||
|
cowner.value = null;
|
||||||
getMainHandler().post(new RunnableEx("observe#stop") {
|
getMainHandler().post(new RunnableEx("observe#stop") {
|
||||||
@Override
|
@Override
|
||||||
public void delegate() {
|
public void delegate() {
|
||||||
|
@ -2330,6 +2332,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Stop executing operations
|
// Stop executing operations
|
||||||
Log.i(account.name + " stop executing operations");
|
Log.i(account.name + " stop executing operations");
|
||||||
|
|
Loading…
Reference in New Issue