mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 03:50:23 +02:00
Add new fields
This commit is contained in:
parent
f8ddbd7d91
commit
fe1e5962c5
10 changed files with 828 additions and 19 deletions
|
@ -161,7 +161,8 @@ object ApplyServerDataStatus {
|
|||
highestOverlayPermission = newDevice.highestOverlayPermission,
|
||||
accessibilityServiceEnabled = newDevice.accessibilityServiceEnabled,
|
||||
wasAccessibilityServiceEnabled = newDevice.wasAccessibilityServiceEnabled,
|
||||
enableActivityLevelBlocking = newDevice.enableActivityLevelBlocking
|
||||
enableActivityLevelBlocking = newDevice.enableActivityLevelBlocking,
|
||||
qOrLater = newDevice.qOrLater
|
||||
))
|
||||
} else {
|
||||
// eventually update old entry
|
||||
|
@ -193,7 +194,8 @@ object ApplyServerDataStatus {
|
|||
highestOverlayPermission = newDevice.highestOverlayPermission,
|
||||
accessibilityServiceEnabled = newDevice.accessibilityServiceEnabled,
|
||||
wasAccessibilityServiceEnabled = newDevice.wasAccessibilityServiceEnabled,
|
||||
enableActivityLevelBlocking = newDevice.enableActivityLevelBlocking
|
||||
enableActivityLevelBlocking = newDevice.enableActivityLevelBlocking,
|
||||
qOrLater = newDevice.qOrLater
|
||||
)
|
||||
|
||||
if (updatedDeviceEntry != oldDeviceEntry) {
|
||||
|
@ -304,7 +306,8 @@ object ApplyServerDataStatus {
|
|||
assignedAppsVersion = "",
|
||||
timeLimitRulesVersion = "",
|
||||
usedTimesVersion = "",
|
||||
parentCategoryId = newCategory.parentCategoryId
|
||||
parentCategoryId = newCategory.parentCategoryId,
|
||||
timeWarnings = newCategory.timeWarnings
|
||||
))
|
||||
} else {
|
||||
val updatedCategory = oldCategory.copy(
|
||||
|
@ -315,7 +318,8 @@ object ApplyServerDataStatus {
|
|||
temporarilyBlocked = newCategory.temporarilyBlocked,
|
||||
blockAllNotifications = newCategory.blockAllNotifications,
|
||||
baseVersion = newCategory.baseDataVersion,
|
||||
parentCategoryId = newCategory.parentCategoryId
|
||||
parentCategoryId = newCategory.parentCategoryId,
|
||||
timeWarnings = newCategory.timeWarnings
|
||||
)
|
||||
|
||||
if (updatedCategory != oldCategory) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue