mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 11:59:57 +02:00
Make the categories sortable
This commit is contained in:
parent
412966df26
commit
0d2dd7bed1
16 changed files with 1020 additions and 33 deletions
|
@ -312,7 +312,8 @@ object ApplyServerDataStatus {
|
|||
parentCategoryId = newCategory.parentCategoryId,
|
||||
timeWarnings = newCategory.timeWarnings,
|
||||
minBatteryLevelMobile = newCategory.minBatteryLevelMobile,
|
||||
minBatteryLevelWhileCharging = newCategory.minBatteryLevelCharging
|
||||
minBatteryLevelWhileCharging = newCategory.minBatteryLevelCharging,
|
||||
sort = newCategory.sort
|
||||
))
|
||||
} else {
|
||||
val updatedCategory = oldCategory.copy(
|
||||
|
@ -327,7 +328,8 @@ object ApplyServerDataStatus {
|
|||
parentCategoryId = newCategory.parentCategoryId,
|
||||
timeWarnings = newCategory.timeWarnings,
|
||||
minBatteryLevelMobile = newCategory.minBatteryLevelMobile,
|
||||
minBatteryLevelWhileCharging = newCategory.minBatteryLevelCharging
|
||||
minBatteryLevelWhileCharging = newCategory.minBatteryLevelCharging,
|
||||
sort = newCategory.sort
|
||||
)
|
||||
|
||||
if (updatedCategory != oldCategory) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue