mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	Don't reschedule bg checks if app is restarted
This commit is contained in:
		| @@ -318,4 +318,16 @@ class SettingsProvider with ChangeNotifier { | ||||
|     prefs?.setBool('enableBackgroundUpdates', val); | ||||
|     notifyListeners(); | ||||
|   } | ||||
|  | ||||
|   DateTime get lastBGCheckTime { | ||||
|     int? temp = prefs?.getInt('lastBGCheckTime'); | ||||
|     return temp != null | ||||
|         ? DateTime.fromMillisecondsSinceEpoch(temp) | ||||
|         : DateTime.fromMillisecondsSinceEpoch(0); | ||||
|   } | ||||
|  | ||||
|   set lastBGCheckTime(DateTime val) { | ||||
|     prefs?.setInt('lastBGCheckTime', val.millisecondsSinceEpoch); | ||||
|     notifyListeners(); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user