mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +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() {
|
||||
super.onClick();
|
||||
syncPreferences.run();
|
||||
|
||||
myNetworkContext.removeCookiesForDomain(SyncOptions.DOMAIN);
|
||||
myNetworkContext.setAccountName(SyncOptions.DOMAIN, SyncOptions.REALM, null);
|
||||
|
||||
if (!isChecked()) {
|
||||
setOnSummary(null);
|
||||
return;
|
||||
}
|
||||
|
||||
myNetworkContext.removeCookiesForDomain(SyncOptions.DOMAIN);
|
||||
myNetworkContext.setAccountName(SyncOptions.DOMAIN, SyncOptions.REALM, null);
|
||||
|
||||
UIUtil.createExecutor(PreferenceActivity.this, "tryConnect").execute(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue