mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
reset account info on both enabling & disabling of synchronisation
This commit is contained in:
parent
de1a84a5d2
commit
fdb1cc0aac
1 changed files with 4 additions and 3 deletions
|
@ -151,14 +151,15 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
syncPreferences.run();
|
syncPreferences.run();
|
||||||
|
|
||||||
|
myNetworkContext.removeCookiesForDomain(SyncOptions.DOMAIN);
|
||||||
|
myNetworkContext.setAccountName(SyncOptions.DOMAIN, SyncOptions.REALM, null);
|
||||||
|
|
||||||
if (!isChecked()) {
|
if (!isChecked()) {
|
||||||
setOnSummary(null);
|
setOnSummary(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
myNetworkContext.removeCookiesForDomain(SyncOptions.DOMAIN);
|
|
||||||
myNetworkContext.setAccountName(SyncOptions.DOMAIN, SyncOptions.REALM, null);
|
|
||||||
|
|
||||||
UIUtil.createExecutor(PreferenceActivity.this, "tryConnect").execute(new Runnable() {
|
UIUtil.createExecutor(PreferenceActivity.this, "tryConnect").execute(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue