1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-25 08:46:40 +00:00

Fix an OS crash on negative synctime

This commit is contained in:
Loic Blot 2015-11-04 00:47:22 +01:00
parent c72a897f81
commit 64b580bcd3

View File

@ -116,8 +116,10 @@ public class GeneralSettingsActivity extends NrzSettingsActivity {
ContentResolver.removePeriodicSync(myAccountList[i], ContentResolver.removePeriodicSync(myAccountList[i],
GeneralSettingsActivity._accountAuthority, b); GeneralSettingsActivity._accountAuthority, b);
ContentResolver.addPeriodicSync(myAccountList[i], if (syncFreq > 0) {
GeneralSettingsActivity._accountAuthority, b, syncFreq * 60); ContentResolver.addPeriodicSync(myAccountList[i],
GeneralSettingsActivity._accountAuthority, b, syncFreq * 60);
}
} }
prefs.putLong(key, syncFreq); prefs.putLong(key, syncFreq);