Manga cover editing fixes
This commit is contained in:
@@ -18,7 +18,7 @@ class ChangelogDialogController : DialogController() {
|
||||
val activity = activity!!
|
||||
val view = WhatsNewRecyclerView(activity)
|
||||
return MaterialDialog(activity)
|
||||
.title(res = if (BuildConfig.DEBUG /* SY --> */ || syDebugVersion != "0" /* SY <-- */) R.string.notices else R.string.changelog)
|
||||
.title(res = if (BuildConfig.DEBUG /* SY --> */ || syDebugVersion != "0" /* SY <-- */) R.string.notices else R.string.whats_new)
|
||||
.customView(view = view)
|
||||
.positiveButton(R.string.action_close)
|
||||
}
|
||||
|
||||
@@ -334,8 +334,8 @@ class MangaController :
|
||||
menu.findItem(R.id.download_group).isVisible = !isLocalSource
|
||||
|
||||
// Hide edit cover and migrate options for non-library manga
|
||||
menu.findItem(R.id.action_edit_cover).isVisible = presenter.manga.favorite
|
||||
/* SY --> menu.findItem(R.id.action_migrate).isVisible = presenter.manga.favorite SY <-- */
|
||||
/* SY --> menu.findItem(R.id.action_edit_cover).isVisible = presenter.manga.favorite SY <-- */
|
||||
/* SY --> menu.findItem(R.id.action_migrate).isVisible = presenter.manga.favorite SY <-- */
|
||||
|
||||
// SY -->
|
||||
if (presenter.manga.favorite) menu.findItem(R.id.action_edit).isVisible = true
|
||||
@@ -407,7 +407,7 @@ class MangaController :
|
||||
}
|
||||
// SY <--
|
||||
|
||||
R.id.action_edit_cover -> handleChangeCover()
|
||||
// SY --> R.id.action_edit_cover -> handleChangeCover() // SY <--
|
||||
// SY --> R.id.action_migrate -> migrateManga() // SY <--
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
@@ -553,7 +553,7 @@ class MangaController :
|
||||
REQUEST_EDIT_MANGA_COVER
|
||||
)
|
||||
} else {
|
||||
activity?.toast(R.string.cover_must_be_in_library)
|
||||
activity?.toast(R.string.notification_first_add_to_library)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -240,6 +240,7 @@ class MangaPresenter(
|
||||
editCoverWithStream(uri)
|
||||
} else if (resetCover) {
|
||||
coverCache.deleteCustomCover(manga)
|
||||
manga.updateCoverLastModified(db)
|
||||
}
|
||||
|
||||
if (uri == null && resetCover) {
|
||||
|
||||
Reference in New Issue
Block a user