From 54a3767eb4ecef44a4a8ceb1116b2e88045f0e2e Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 27 Mar 2021 16:42:13 -0400 Subject: [PATCH] Removing Internal changelog There's a lot of changes this release and I'm tired of writing them twice each time Based on tachiyomiorg@88032e1 Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com> --- .../tachiyomi/ui/base/MaterialMenuSheet.kt | 4 +- .../ui/main/ChangelogDialogController.kt | 32 -- .../kanade/tachiyomi/ui/main/MainActivity.kt | 4 +- .../kanade/tachiyomi/ui/main/WhatsNewSheet.kt | 42 +++ .../tachiyomi/ui/setting/AboutController.kt | 5 - app/src/main/res/layout/bottom_menu_sheet.xml | 10 + app/src/main/res/raw/changelog_debug.xml | 39 --- app/src/main/res/raw/changelog_release.xml | 312 ------------------ app/src/main/res/values/strings.xml | 1 + 9 files changed, 59 insertions(+), 390 deletions(-) delete mode 100644 app/src/main/java/eu/kanade/tachiyomi/ui/main/ChangelogDialogController.kt create mode 100644 app/src/main/java/eu/kanade/tachiyomi/ui/main/WhatsNewSheet.kt delete mode 100644 app/src/main/res/raw/changelog_debug.xml delete mode 100644 app/src/main/res/raw/changelog_release.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialMenuSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialMenuSheet.kt index 0b1bcd3114..21847e843b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialMenuSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialMenuSheet.kt @@ -31,12 +31,13 @@ import eu.kanade.tachiyomi.util.view.visible import eu.kanade.tachiyomi.util.view.visibleIf import kotlinx.android.synthetic.main.bottom_menu_sheet.* -class MaterialMenuSheet( +open class MaterialMenuSheet( activity: Activity, items: List, title: String? = null, selectedId: Int? = null, maxHeight: Int? = null, + showDivider: Boolean = false, onMenuItemClicked: (MaterialMenuSheet, Int) -> Boolean ) : BottomSheetDialog @@ -56,6 +57,7 @@ class MaterialMenuSheet( menu_scroll_view.requestLayout() } + divider.visibleIf(showDivider) var currentIndex: Int? = null items.forEachIndexed { index, item -> val view = diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/ChangelogDialogController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/ChangelogDialogController.kt deleted file mode 100644 index 07adaab74a..0000000000 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/ChangelogDialogController.kt +++ /dev/null @@ -1,32 +0,0 @@ -package eu.kanade.tachiyomi.ui.main - -import android.app.Dialog -import android.content.Context -import android.os.Bundle -import android.util.AttributeSet -import com.afollestad.materialdialogs.MaterialDialog -import com.afollestad.materialdialogs.customview.customView -import eu.kanade.tachiyomi.BuildConfig -import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.ui.base.controller.DialogController -import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView - -class ChangelogDialogController : DialogController() { - - override fun onCreateDialog(savedViewState: Bundle?): Dialog { - val activity = activity!! - val view = WhatsNewRecyclerView(activity) - return MaterialDialog(activity) - .title(text = if (BuildConfig.DEBUG) "Notices" else "Changelog") - .customView(view = view, scrollable = false) - .positiveButton(android.R.string.yes) - } - - class WhatsNewRecyclerView(context: Context) : ChangeLogRecyclerView(context) { - override fun initAttrs(attrs: AttributeSet?, defStyle: Int) { - mRowLayoutId = R.layout.changelog_row_layout - mRowHeaderLayoutId = R.layout.changelog_header_layout - mChangeLogFileResourceId = if (BuildConfig.DEBUG) R.raw.changelog_debug else R.raw.changelog_release - } - } -} diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index 4be1d8d0ce..963028cce1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -304,7 +304,9 @@ open class MainActivity : BaseActivity(), DownloadServiceListener { // Show changelog if needed if (Migrations.upgrade(preferences)) { if (!BuildConfig.DEBUG) { - ChangelogDialogController().showDialog(router) + content.post { + WhatsNewSheet(this).show() + } } } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/WhatsNewSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/WhatsNewSheet.kt new file mode 100644 index 0000000000..df0e94ebb6 --- /dev/null +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/WhatsNewSheet.kt @@ -0,0 +1,42 @@ +package eu.kanade.tachiyomi.ui.main + +import android.app.Activity +import android.content.Intent +import androidx.core.net.toUri +import eu.kanade.tachiyomi.BuildConfig +import eu.kanade.tachiyomi.R +import eu.kanade.tachiyomi.ui.base.MaterialMenuSheet +import eu.kanade.tachiyomi.util.system.toast + +class WhatsNewSheet(activity: Activity) : MaterialMenuSheet( + activity, + listOf( + MenuSheetItem( + 0, + textRes = R.string.whats_new_this_release, + drawable = R.drawable.ic_new_releases_24dp + ), + MenuSheetItem( + 1, + textRes = R.string.close, + drawable = R.drawable.ic_close_24dp + ) + ), + title = activity.getString(R.string.updated_to_, BuildConfig.VERSION_NAME), + showDivider = true, + selectedId = 0, + onMenuItemClicked = { _, item -> + if (item == 0) { + try { + val intent = Intent( + Intent.ACTION_VIEW, + "https://github.com/jays2kings/tachiyomiJ2K/releases/tag/v${BuildConfig.VERSION_NAME}".toUri() + ) + activity.startActivity(intent) + } catch (e: Throwable) { + activity.toast(e.message) + } + } + true + } +) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/AboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/AboutController.kt index 5858bd67f2..08db6f4600 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/AboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/AboutController.kt @@ -14,7 +14,6 @@ import eu.kanade.tachiyomi.data.updater.UpdateChecker import eu.kanade.tachiyomi.data.updater.UpdateResult import eu.kanade.tachiyomi.data.updater.UpdaterService import eu.kanade.tachiyomi.ui.base.controller.DialogController -import eu.kanade.tachiyomi.ui.main.ChangelogDialogController import eu.kanade.tachiyomi.util.lang.toTimestampString import eu.kanade.tachiyomi.util.system.isOnline import eu.kanade.tachiyomi.util.system.toast @@ -115,10 +114,6 @@ class AboutController : SettingsController() { preference { titleRes = R.string.build_time summary = getFormattedBuildTime() - - onClick { - ChangelogDialogController().showDialog(router) - } } preference { titleRes = R.string.open_source_licenses diff --git a/app/src/main/res/layout/bottom_menu_sheet.xml b/app/src/main/res/layout/bottom_menu_sheet.xml index 6b6e4a37d9..b5453b4ffd 100644 --- a/app/src/main/res/layout/bottom_menu_sheet.xml +++ b/app/src/main/res/layout/bottom_menu_sheet.xml @@ -58,5 +58,15 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="Title Text" /> + + diff --git a/app/src/main/res/raw/changelog_debug.xml b/app/src/main/res/raw/changelog_debug.xml deleted file mode 100644 index 71d60e9eee..0000000000 --- a/app/src/main/res/raw/changelog_debug.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - A new screen for managing extensions was added. If you previously installed extensions from FDroid, - you will have to uninstall all of them first (tap on the extension then uninstall), otherwise you won't be able - to update them due to signature mismatch. You won't lose anything in this process as the extensions themselves - don't store anything. - - - - - The download manager has been rewritten and it's possible some of your downloads - aren't recognized anymore. You may have to check your downloads folder and manually delete those. - - You can now download to any folder in your SD card. - The download directory setting has been reset. - - - - [b]Important![/b] Delete after read has been updated. - This means the value has been reset set to disabled. - This can be changed in Settings > Downloads - - - - - [b]Important![/b] Now chapters follow the order of the sources. [b]It's required that you update your entire library - before reading in order for them to be synced.[/b] Old behavior can be restored for a manga in the overflow menu of the chapters tab. - - - - - Kissmanga covers may not load anymore. The only workaround is to update the details of the manga - from the info tab, or clearing the database (the latter won't fix covers from library manga). - - - - diff --git a/app/src/main/res/raw/changelog_release.xml b/app/src/main/res/raw/changelog_release.xml deleted file mode 100644 index c82bfc5deb..0000000000 --- a/app/src/main/res/raw/changelog_release.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - Fixed MAL issues (You will need to log in again) - Option to mark previous as unread - Bulk Download unread chapters, mark read, mark unread in the library - - - - Fixes to crashes while using certain extensions - Option to save or share a manga cover - In LTR/RTL Reader mode, the page no longer overlap the cutout area (notches, hole punches) when zoomed out, and pans past it when zoomed in - - - - Deeplinking into chapter support for a few sources (Mangadex, MangaPlus, Jaimini's Box, Kirei Cake). more to come maybe - Tap on the manga title in reader to go to the manga's details - Fixes to MAL signouts - Fixes to Nth downloaded chapters not deleting as well as lag when deleting - Changed webtoon zoom setting to only disable zoom out - Various updates from upstream, such as DNS over HTTPS via Cloudflare - - - - Fixes to crashes on certain Samsung phones - Fixed external links not opening sometimes (if you still have this issue, set this app to the default) - - - - Dynamic categories: Group your library by sources, tags, and more - Editing online manga returns - Option to globally search only pinned sources - Updates to Migration, making it easier to change sources or migrate to the same one - Option to always show the category header - Reader now skips chapters based on your filters - Option to show list of errors when updating library - Continuous vertical mode's crop border setting use the same setting as paged viewer - Manga details colored background is now consistent between light and dark themes - Along with filtering by manhwa/manhua, you can now filter library by manga - New framework used for caching library covers - More bug fixes as always - - - - When jumping to chapters while reading, your last read page will be saved - Option to hide category hopper - Fixed vpns and miui devices not working - Other minor fixes as well - - - - Fixed local covers - Toolbar no longer shows when transitioning chapters with transition - off - - - - Changed how navigation between categories is done, there's now a hopper at the bottom of the screen - The hopper can be moved to the left or right of the screen with a swipe - New fast scroll again. Out with the old, in with the older - New fast scroller is now in downloads and extensions as well as library and manga info - Backups now save a list of your extensions (same as main Tachi) - Restores made with newer backups now mention the missing sources by name - Reorder filters in the filter bar - Perform a global search from your library - Collapse or expand all categories at once - Downloads and updates now run in parallel, divided by the sources - Updated Russian, Portuguese, and Polish translations - More Bug fixes - - - - Here at J2K, we are listening to our customers. Except those who want tabs - back - Switch categories by tapping on the library title, with - option to not show all categories at once - More grid size options - Compact List returns - Search by title and author via tapping returns - More Bug fixes, including fixing blank pages in reader - - - - Various Bug fixes - - - - Full MD2 overhaul, check the GitHub release for full - changelog - - - - Fixed Extensions list sometimes not loading - Fixed Catalogue list resetting to the top - Fixed those without a category seeing "Updating Default" - - - - Hide categories and show your library in a single list in filters - Option to set date format - You can now pull to refresh on multiple categories, they will be added to the queue - Fast scroller added to library - Search history in recently read - Unread sorting now always shows unread on top - Download notification placeholder improved - Confirmation popup when removing manga from library - Reworked downloads caching logic - Bug fixes for icons and themes - - - - More bug fixes :( - - - - Bug fixes and performance improvements :) - If titles of your manga disappeared in the last update, please go to sources and search for it, this will add the title back - - - - Edit all manga info from title to tags for both online and local manga - Tracked filter no longer shows tracking for services you've logged out of - Added logout button to tracking settings - Track button pre-selected when adding new manga to track and there's a single entry - Tracking status options now reflect the site's wording and order - Refreshing metadata now updates the manga title (if there is a new manga title) - Search "local" to see local manga, also can now search artist - Tapping the app icon on homescreen no longer closes the reader or webview - Fixed crash when changing categories for global download - Fully Translated Russian Language - Default category name in settings now honors locale - Added Last Read to Drag & Drop sorting - Fixes to stopping downloads - - - - Extensions notifications now perfected - Extensions are checked every hour in app - Added badge showing how many updates for extension are pending in the side drawer - Extensions no longer available show obsolete - More material dialog boxes, Android 10 uses normal casing on buttons - Tap on manga thumbnails in info to expand them - Have different sorting per category in drag & drop - Filter Library by tracked manga - Web view now has pull to refresh and progress bar - Extensions no longer available show up as obsolete - Sort drag & drop by unread - Move selected manga to the top or bottom of the list in Drag & Drop - Web view now hides the top bar when scroll - Search view in toolbar hides filter/no more duplicates - Fixed last updated sorting not going by latest chapter upload - More translations, Default category now honors your language - Fixes to a few dialog boxes, Drag & Drop, selecting in library - Fixed double vibration when long pressing in drag & drop mode - Updating wording in a few places - Settings -> About -> Build Time now shows you this changelog - - - - Restoring backups is now a notification - Fixed Recent Read bugs, recently read goes back 50 years - Group notifications now only make one sound - New Last Updated (last updated being newest chapter) logic now is set on restore as well - Using new material dialog boxes - For unfavorited manga, chapters now start at the top of the list - Option for smart read bg to be based on the page or based on the app theme - Splash screen now matches app colors - Added option in Advanced to cleanup old downloads - Downloads will now take images from the reader cache, instead of downloading again - Downloads have been renamed to a more simple format - - - - Fixed Status Bar in Black reader theme - - - - Added splash screen - Truly fixed the dark theme bug - Fixed downloads not deleting after reading if the chapter has scanlator - - 🦀Manga Rock is Dead🦀, but that shouldn't crash the app when - pressing browse - - - - Pending downloads can be move to the top or bottom of the queue with a - menu button on the right side, they can also be canceled - Fixes for the extension updates notification (should be solid - now) - Auto migration now has a prompt before you quit early + fixes - Fixed dark theme sometimes mixing with the light, bugging out the - UI - Added option to reorder pending downloads by newest or oldest - chapter - Mass Migration now shows progress and total manga in the - title - Fixed the issue where deleted downloads using the old folder format said - they weren't (they were) - Canceled downloads now delete the temp folder - Auto Migration source now show their language if multiple languages are - enabled - - - - Rewording a few things - Extensions Updater checker now checks every 12 hours, you might need to - renable this setting to get the new timing - Fixed reordering drag and drop by last updating being reversed - Auto Migrations now shows how many manual migrations were made after - skipping the rest - - - - Drag & Drop support in Library - Optimizations for the auto-migration, should now find alternative titles - for mangas - Fast scrolling in library - (From dev) faster loading when scrubbing the reader's seekbar - Barely smaller app size - Fix extension notifcation sometimes not showing - - - - Mass/Automatic Source Migration - Fix single tag searching + multi tag searching by commas (ie. "Romance, - -Harem, Comedy") - Chapters FAB no longer hides - Added setting to ignore articles when sorting alphabetically - Downloaded chapters names now use scantalors names - Fixed reordering downloads restarting the progress - (From dev) Auto attempt a login refresh once if MAL returns http - 400 - (From dev) Increase default text size of the transition chapter - page - (From dev) Add .nomedia file in each chapter download folder - Hard coded Mangadex extension removed, please update your - extensions to access their preferences - - - - Fixed status bar not being transparent for dark themes on Android Pie and - under - Manga/Chapter titles are no longer truncated on notifications - - - - Automatically check for updates for installed extensions (Enable it by - going to Extensions -> Overflow menu -> Auto-check for updates) - Reorder downloads in queue - New Icon! - - - - Fixed crash when disabling all sources in a language before disabling any - sources - Added back MangaDex Extension Preferences - - - - Lock Tachiyomi using your fingerprint/Biometrics - Added search/sorting/mass enable/disable to catalogue sources - Extensions are now filtered to your locale, with an option to show other - languages - Fixed AMOLED theme not having dark snackbar - - - - Fixes notification text when there are multiple chapters - Simplified errors now show after restoring a backup on the popup - dialog - Fixed last updated sorting being in a jumbled order after restoring (Note: - if the list is still jumbled after restore, refersh your library) - Fixed notifcations not expanding on older devices - - - - Range Select for Library and Chapters: long Press on an item - then long press on another to select everything in between - Tap on top or bottom of a webtoon to scroll up and down - (tapping the sides still works too) - Tri-State Filters on library - Fixes to white background sometimes in auto dark mode - - - - Android 10 Dark Theme support: You can have Tachiyomi follow the system - theme as well as customize which dark theme to use for dark mode - Android 10 edge to edge support (and a translucent nav bar for older - versions): no more small ugly bar for the gesture navigation - Automatic background based on manga page: For those that like having a - white background to match the content, this will automatically set the background to - match for moments such as a flashback section of a manga - Richer New chapters notifications: Now as a group of notifications, - expanding out to show more information about the new chapters (like chapter name and - manga cover). Tapping on it will bring you right into the chapter or expand it to - mark it as read or view all chapters - New material snackbar: Removing manga now auto deletes chapters and has an - undo button in case you change your mind - Multi Source Migration from library - Notification separation of updating library and new chapters - Share sheets upgrade for Android 10 - Reader seekbar overrides switch app gesture in Android 10, so no more - accidents for that - Option to hide manga titles in grid view - Filter out your library by searching for tags (ex. "Comedy" or "Slice of - Life") or exclude manga by a tag (ex. "-Shounen" or "-Romance"). Tapping on these - tags also performs a local search - Android X Support - - - diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f3a1462496..001bdee31d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -539,6 +539,7 @@ System default Date format Check for updates + Updated to v%1$s Automatically check for new app versions Secure screen Auto-hide bottom navigation