mirror of
				https://github.com/nerzhul/ownCloud-SMS-App.git
				synced 2025-10-30 18:07:51 +00:00 
			
		
		
		
	Fix an OS crash on negative synctime
This commit is contained in:
		
							parent
							
								
									c72a897f81
								
							
						
					
					
						commit
						64b580bcd3
					
				| @ -116,9 +116,11 @@ public class GeneralSettingsActivity extends NrzSettingsActivity { | ||||
| 
 | ||||
| 					ContentResolver.removePeriodicSync(myAccountList[i], | ||||
|                             GeneralSettingsActivity._accountAuthority, b); | ||||
|                     if (syncFreq > 0) { | ||||
|                         ContentResolver.addPeriodicSync(myAccountList[i], | ||||
|                                 GeneralSettingsActivity._accountAuthority, b, syncFreq * 60); | ||||
|                     } | ||||
| 				} | ||||
| 
 | ||||
|                 prefs.putLong(key, syncFreq); | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user