1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +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();
syncPreferences.run();
SyncUtil.logout(myNetworkContext);
if (!isChecked()) {
SyncUtil.logout(myNetworkContext);
syncOptions.Enabled.setValue(false);
enableSynchronisation();
syncPreferences.run();