mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-11 16:32:53 +00:00
Fix an OS crash on negative synctime
This commit is contained in:
+4
-2
@@ -116,8 +116,10 @@ public class GeneralSettingsActivity extends NrzSettingsActivity {
|
||||
|
||||
ContentResolver.removePeriodicSync(myAccountList[i],
|
||||
GeneralSettingsActivity._accountAuthority, b);
|
||||
ContentResolver.addPeriodicSync(myAccountList[i],
|
||||
GeneralSettingsActivity._accountAuthority, b, syncFreq * 60);
|
||||
if (syncFreq > 0) {
|
||||
ContentResolver.addPeriodicSync(myAccountList[i],
|
||||
GeneralSettingsActivity._accountAuthority, b, syncFreq * 60);
|
||||
}
|
||||
}
|
||||
|
||||
prefs.putLong(key, syncFreq);
|
||||
|
||||
Reference in New Issue
Block a user