Formatting
This commit is contained in:
@@ -30,7 +30,7 @@ class HistoryAdapter(controller: HistoryController) :
|
||||
val decimalFormat = DecimalFormat(
|
||||
"#.###",
|
||||
DecimalFormatSymbols()
|
||||
.apply { decimalSeparator = '.' }
|
||||
.apply { decimalSeparator = '.' },
|
||||
)
|
||||
|
||||
init {
|
||||
|
||||
@@ -211,7 +211,7 @@ class HistoryController :
|
||||
|
||||
// Fixes problem with the overflow icon showing up in lieu of search
|
||||
searchItem.fixExpand(
|
||||
onExpand = { invalidateMenuOnExpand() }
|
||||
onExpand = { invalidateMenuOnExpand() },
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class HistoryHolder(
|
||||
binding.mangaSubtitle.text = itemView.context.getString(
|
||||
R.string.recent_manga_time,
|
||||
formattedNumber,
|
||||
Date(history.last_read).toTimestampString()
|
||||
Date(history.last_read).toTimestampString(),
|
||||
)
|
||||
} else {
|
||||
binding.mangaSubtitle.text = Date(history.last_read).toTimestampString()
|
||||
|
||||
@@ -47,7 +47,7 @@ class HistoryPresenter : BasePresenter<HistoryController>() {
|
||||
{ view, mangas ->
|
||||
view.onNextManga(mangas)
|
||||
},
|
||||
HistoryController::onAddPageError
|
||||
HistoryController::onAddPageError,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class HistoryPresenter : BasePresenter<HistoryController>() {
|
||||
{ view, mangas ->
|
||||
view.onNextManga(mangas, true)
|
||||
},
|
||||
HistoryController::onAddPageError
|
||||
HistoryController::onAddPageError,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class UpdatesHolder(private val view: View, private val adapter: UpdatesAdapter)
|
||||
} else {
|
||||
binding.mangaTitle.setTextColor(adapter.unreadColor)
|
||||
binding.chapterTitle.setTextColor(
|
||||
if (item.bookmark) adapter.bookmarkedColor else adapter.unreadColorSecondary
|
||||
if (item.bookmark) adapter.bookmarkedColor else adapter.unreadColorSecondary,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class UpdatesPresenter : BasePresenter<UpdatesController>() {
|
||||
},
|
||||
{ _, error ->
|
||||
logcat(LogPriority.ERROR, error)
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
downloadManager.queue.getProgressObservable()
|
||||
@@ -180,7 +180,7 @@ class UpdatesPresenter : BasePresenter<UpdatesController>() {
|
||||
{ view, _ ->
|
||||
view.onChaptersDeleted()
|
||||
},
|
||||
UpdatesController::onChaptersDeletedError
|
||||
UpdatesController::onChaptersDeletedError,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user