Skip to content

Commit

Permalink
Fix: ID conflicts when importing custom templates
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Feb 10, 2023
1 parent 97eb253 commit 81289cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
# Changelog


All notable changes (starting from v1.7.3) to stable releases will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.8.2][1.8.2] - 2023-02-04
## [v1.8.2][1.8.2] - 2023-02-10

### Fixed

- Trimmed ASCII characters filename
- Unexpected error when downloading multiple video to SD card with quick download
- Error when cropping vertical thumbnails as artwork
- ID conflicts when importing custom templates

### Changed

- Add `horizontalScroll` to `LogPage`
- Revert the URL intent filters

## [v1.8.1][1.8.1] - 2023-02-01

### Fixed

- App crashes when downloading in private mode
- Unexpected ImeActions in TextFields
- Disable SD card download when the directory is not set
- Localized strings for file size texts


## [v1.8.0][1.8.0] - 2023-01-29

### Added
Expand All @@ -44,8 +49,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Scan the download directory to the system media library after running commands
- Change the LongClick operations of `FormatItem` to share the stream URLs



## [v1.7.3][1.7.3] - 2023-01-10

### Fixed
Expand All @@ -63,11 +66,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Playlist results are limited to 200 videos





[1.7.3]: https://github.com/JunkFood02/Seal/releases/tag/v1.7.3

[1.8.0]: https://github.com/JunkFood02/Seal/releases/tag/v1.8.0

[1.8.1]: https://github.com/JunkFood02/Seal/releases/tag/v1.8.1

[1.8.2]: https://github.com/JunkFood02/Seal/releases/tag/v1.8.2
4 changes: 2 additions & 2 deletions app/src/main/java/com/junkfood/seal/util/DatabaseUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ object DatabaseUtil {
templates.filterNot {
templateList.contains(it)
}.run {
dao.importTemplates(this)
dao.importTemplates(this.map { it.copy(id = 0) })
cnt += size
}
dao.insertAllShortcuts(shortcuts.filterNot {
shortcutList.contains(it)
}.apply { cnt += size })
}.map { it.copy(id = 0) }.apply { cnt += size })
}

} catch (e: Exception) {
Expand Down

0 comments on commit 81289cc

Please sign in to comment.