* Add manga-wised rotation mode settings
Based on #3522
Co-authored-by: bboyz269 <4453811+bboyz269@users.noreply.github.com>
* Fix small mistakes
* Complete TODOs
* Rename functions
rotation -> orientation
* Fix orientation icon not changing
Bug from video
* Fix bug with force portrait not being force if a default value
Bug from video
* Backup viewer_flag as a seperate field in so legacy/forks doesn't crash
* Make viewer_flags nullable so old backups viewer gets restored
* Add migration for old rotation and viewer to new defaults ones
* Rename variable in enums
* Fix migration after OrientationType was changed
* Remove untrue comment
Co-authored-by: bboyz269 <4453811+bboyz269@users.noreply.github.com>
(cherry picked from commit 0fef546a0d4b2a78089b0880564e80708afbe1da)
# Conflicts:
# app/build.gradle.kts
# app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupManga.kt
# app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt
# app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt
# app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
# app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SearchPresenter.kt
# app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
# app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt
They don't actually run since they broke a long time ago (AndroidX + Roboelectric issues?), but it addresses the annoying red squigglies in Android Studio at least.
(cherry picked from commit 0ecfef3f70e1fafab490c5ba21f93d2429ac8678)
* Make a protobuf based backup system, restore not tested
* Fix a number
* Remove uneeded change
* Remove more uneeded changes
* Use 1.x style models, backup should be 100% compatible with the 1.x backups
* Fix restore service not running
* Fix offline chapter restore
Cleanup saved searches restore(untested)
* Implement onlione/offline option, fix merged manga restore online, fix restore total
* Allow setting auto backup to use a full backup
* Fix for saved searches restore
* Edit some comments
* Convert flows back to observables
* Fix a model
* Fixes and comment only the SY specific things
* Move SY values range to 600 from 60
* Combine legacy and full backup services into one
Deduplicate a lot of code
Simplify a lot of stuff
Modify comments
* Cleanup
* Remove unneeded protobuf config edit because its now the default
* Migrate to kotlinx.serialization for backup saved searches
* Cleanup saved searches more, move gson type adapters to the legacy package
* Update basic filter for sources that include space between numbers
Wasnts matching on vol. 1 ch. 10 previously so mangadex last chapter was showing volume number.
* Don't show last chapter number when there are 0 chapters or chapters with no numbers.
This prevents one shots from showing with -1 as last chapter and instead just leaves it blank
* added else to be Unknown instead of blank
* removed empty line
added test case
* switched to null safe ?.
* Revert "switched to null safe ?."
This reverts commit 97a9300d1bedc8e01efb439c180eced8eaa1da5b.
undo
* switched to null safe ?.
* Rewrote Backup
* Save automatic backups with datetime
* Minor improvements
* Remove suggested directories for backup and hardcoded strings. Rename JSON -> Backup
* Bugfix
* Fix tests
* Run restore inside a transaction, use external cache dir for log and other minor changes