1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00

do not ask for synchronization login twice

This commit is contained in:
Nikolay Pultsin 2014-08-15 10:03:31 +01:00
parent b3bcb2aab0
commit 13110b6e98

View file

@ -168,9 +168,8 @@ public class PreferenceActivity extends ZLPreferenceActivity {
super.onClick(); super.onClick();
syncPreferences.run(); syncPreferences.run();
SyncUtil.logout(myNetworkContext);
if (!isChecked()) { if (!isChecked()) {
SyncUtil.logout(myNetworkContext);
syncOptions.Enabled.setValue(false); syncOptions.Enabled.setValue(false);
enableSynchronisation(); enableSynchronisation();
syncPreferences.run(); syncPreferences.run();