Fix date added when adding from browse source

Fixes #8059
This commit is contained in:
arkon
2022-09-25 13:09:25 -04:00
parent f0af3858e8
commit ec272f6c4e
4 changed files with 7 additions and 9 deletions
@@ -239,8 +239,8 @@ open class BrowseSourcePresenter(
var new = manga.copy(
favorite = !manga.favorite,
dateAdded = when (manga.favorite) {
true -> Date().time
false -> 0
true -> 0
false -> Date().time
},
)
@@ -272,7 +272,6 @@ open class BrowseSourcePresenter(
moveMangaToCategories(manga, defaultCategory)
changeMangaFavorite(manga)
// activity.toast(activity.getString(R.string.manga_added_library))
}
// Automatic 'Default' or no categories
@@ -280,7 +279,6 @@ open class BrowseSourcePresenter(
moveMangaToCategories(manga)
changeMangaFavorite(manga)
// activity.toast(activity.getString(R.string.manga_added_library))
}
// Choose a category