mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 07:35:10 +01:00
Fixing reported beta bugs
This commit is contained in:
parent
9cea45af1d
commit
2e4d57749c
@ -58,7 +58,7 @@ android {
|
|||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
versionNameSuffix "-${getCommitCount()}"
|
versionNameSuffix "-${getCommitCount()}"
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debugJ2K"
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
applicationIdSuffix = '.j2k'
|
applicationIdSuffix = '.j2k'
|
||||||
|
@ -94,6 +94,7 @@ interface Category : Serializable {
|
|||||||
mangaSort?.plus(1)
|
mangaSort?.plus(1)
|
||||||
}
|
}
|
||||||
order = -1
|
order = -1
|
||||||
|
isFirst = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -362,23 +362,24 @@ open class LibraryController(
|
|||||||
|
|
||||||
tabsVisibilityRelay.call(categories.size > 1)
|
tabsVisibilityRelay.call(categories.size > 1)
|
||||||
|
|
||||||
if (freshStart || !justStarted) {
|
libraryMangaRelay.call(LibraryMangaEvent(mangaMap))
|
||||||
// Delay the scroll position to allow the view to be properly measured.
|
|
||||||
view.post {
|
view.post {
|
||||||
if (isAttached) {
|
if (isAttached) {
|
||||||
activity?.tabs?.setScrollPosition(library_pager.currentItem, 0f, true)
|
activity?.tabs?.setScrollPosition(library_pager.currentItem, 0f, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the manga map to child fragments after the adapter is updated.
|
if (!freshStart && justStarted) {
|
||||||
libraryMangaRelay.call(LibraryMangaEvent(mangaMap))
|
if (!freshStart) {
|
||||||
}
|
|
||||||
else if (!freshStart) {
|
|
||||||
justStarted = false
|
justStarted = false
|
||||||
if (pager_layout.alpha == 0f)
|
if (pager_layout.alpha == 0f) pager_layout.animate().alpha(1f).setDuration(500).start()
|
||||||
pager_layout.animate().alpha(1f).setDuration(500).start()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Delay the scroll position to allow the view to be properly measured.
|
||||||
|
|
||||||
|
// Send the manga map to child fragments after the adapter is updated.
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a preference for the number of manga per row based on the current orientation.
|
* Returns a preference for the number of manga per row based on the current orientation.
|
||||||
|
@ -235,7 +235,7 @@ class LibraryListController(bundle: Bundle? = null) : LibraryController(bundle),
|
|||||||
updateScroll = false
|
updateScroll = false
|
||||||
return@IgnoreFirstSpinnerListener
|
return@IgnoreFirstSpinnerListener
|
||||||
}
|
}
|
||||||
scrollToHeader(pos - 1)
|
scrollToHeader(presenter.categories[pos].order)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,12 +450,12 @@ class LibraryPresenter(
|
|||||||
libraryManga.map { manga ->
|
libraryManga.map { manga ->
|
||||||
LibraryItem(manga, libraryLayout, null).apply { unreadType = unreadBadgeType }
|
LibraryItem(manga, libraryLayout, null).apply { unreadType = unreadBadgeType }
|
||||||
}.groupBy {
|
}.groupBy {
|
||||||
if (showCategories) it.manga.category else 0
|
if (showCategories) it.manga.category else -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
libraryManga.groupBy { manga ->
|
libraryManga.groupBy { manga ->
|
||||||
if (showCategories) manga.category else 0
|
if (showCategories) manga.category else -1
|
||||||
//LibraryItem(manga, libraryLayout).apply { unreadType = unreadBadgeType }
|
//LibraryItem(manga, libraryLayout).apply { unreadType = unreadBadgeType }
|
||||||
}.map { entry ->
|
}.map { entry ->
|
||||||
val categoryItem =
|
val categoryItem =
|
||||||
@ -467,7 +467,7 @@ class LibraryPresenter(
|
|||||||
).apply { unreadType = unreadBadgeType }
|
).apply { unreadType = unreadBadgeType }
|
||||||
}
|
}
|
||||||
}.map {
|
}.map {
|
||||||
val cat = if (showCategories) it.firstOrNull()?.manga?.category ?: 0 else 0
|
val cat = if (showCategories) it.firstOrNull()?.manga?.category ?: 0 else -1
|
||||||
cat to it
|
cat to it
|
||||||
//LibraryItem(manga, libraryLayout).apply { unreadType = unreadBadgeType }
|
//LibraryItem(manga, libraryLayout).apply { unreadType = unreadBadgeType }
|
||||||
}.toMap()
|
}.toMap()
|
||||||
|
@ -42,7 +42,6 @@ import eu.kanade.tachiyomi.ui.reader.viewer.pager.L2RPagerViewer
|
|||||||
import eu.kanade.tachiyomi.ui.reader.viewer.pager.R2LPagerViewer
|
import eu.kanade.tachiyomi.ui.reader.viewer.pager.R2LPagerViewer
|
||||||
import eu.kanade.tachiyomi.ui.reader.viewer.pager.VerticalPagerViewer
|
import eu.kanade.tachiyomi.ui.reader.viewer.pager.VerticalPagerViewer
|
||||||
import eu.kanade.tachiyomi.ui.reader.viewer.webtoon.WebtoonViewer
|
import eu.kanade.tachiyomi.ui.reader.viewer.webtoon.WebtoonViewer
|
||||||
import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate
|
|
||||||
import eu.kanade.tachiyomi.util.lang.plusAssign
|
import eu.kanade.tachiyomi.util.lang.plusAssign
|
||||||
import eu.kanade.tachiyomi.util.storage.getUriCompat
|
import eu.kanade.tachiyomi.util.storage.getUriCompat
|
||||||
import eu.kanade.tachiyomi.util.system.GLUtil
|
import eu.kanade.tachiyomi.util.system.GLUtil
|
||||||
@ -150,7 +149,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
|
|||||||
override fun onCreate(savedState: Bundle?) {
|
override fun onCreate(savedState: Bundle?) {
|
||||||
AppCompatDelegate.setDefaultNightMode(
|
AppCompatDelegate.setDefaultNightMode(
|
||||||
when (preferences.theme()) {
|
when (preferences.theme()) {
|
||||||
1 -> AppCompatDelegate.MODE_NIGHT_NO
|
1, 8 -> AppCompatDelegate.MODE_NIGHT_NO
|
||||||
2, 3, 4 -> AppCompatDelegate.MODE_NIGHT_YES
|
2, 3, 4 -> AppCompatDelegate.MODE_NIGHT_YES
|
||||||
else -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
|
else -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ class SettingsGeneralController : SettingsController() {
|
|||||||
R.string.system_theme, R.string.sysyem_white_theme, R.string.system_amoled_theme, R.string
|
R.string.system_theme, R.string.sysyem_white_theme, R.string.system_amoled_theme, R.string
|
||||||
.system_darkblue_theme)
|
.system_darkblue_theme)
|
||||||
entryValues = listOf(1, 8, 2, 3, 4, 5, 9, 6, 7)
|
entryValues = listOf(1, 8, 2, 3, 4, 5, 9, 6, 7)
|
||||||
defaultValue = 5
|
defaultValue = 8
|
||||||
|
|
||||||
onChange {
|
onChange {
|
||||||
activity?.recreate()
|
activity?.recreate()
|
||||||
|
Loading…
Reference in New Issue
Block a user