* 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>
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.
* Make a protobuf based backup system
* Cleanup
* More cleanup
* Fix restores always loading the full backup restore, even when legacy restore was used
* Make offline the default
(cherry picked from commit f6fd8a8ddb90869f3e28fd8fcd81a2125f8e0527)
* Find chapter based on the url
(cherry picked from commit 326dc2700944a60da381d82cd9782c5f0d335902)
* Dont break after finding one chapter
(cherry picked from commit f91d1af37398619cf371e4920b60f6d309799c74)
* Also apply changes to online restore
(cherry picked from commit e7c16cd0d14ea5d50ce4a9a3dfa8ca768be702f2)
* Rewrite backup categories
(cherry picked from commit f4200e2146a9c540675767206ed4664894aa1216)
* Dedupe some code, move over read and bookmarks properly
(cherry picked from commit d9ce86aca66945c831670a1523d8bc69966312df)
* Move some functions to the abstract backup manager
(cherry picked from commit b0c658741a2f506bc31823f1f0347772bc119d2e)
# Conflicts:
# app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt
# app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt
* Fix some backup duplication issues
(cherry picked from commit a4a1c2827c4537d2d07a0cb589dc1c3be1d65185)
# Conflicts:
# app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt
* Fix a missed bundleOf
* So glad this wasnt merged before now, everything should be working with this commit
* 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