@@ -74,7 +74,7 @@ class InterceptActivity : BaseActivity() {
|
||||
when (status) {
|
||||
InterceptResult.Idle, InterceptResult.Loading -> {
|
||||
Text(
|
||||
text = stringResource(R.string.loading_manga),
|
||||
text = stringResource(R.string.loading_entry),
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
)
|
||||
CircularProgressIndicator(modifier = Modifier.size(56.dp))
|
||||
@@ -120,7 +120,7 @@ class InterceptActivity : BaseActivity() {
|
||||
is InterceptResult.Failure -> {
|
||||
MaterialAlertDialogBuilder(this)
|
||||
.setTitle(R.string.chapter_error)
|
||||
.setMessage(getString(R.string.could_not_open_manga, it.reason))
|
||||
.setMessage(getString(R.string.could_not_open_entry, it.reason))
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
.setOnCancelListener { onBackPressed() }
|
||||
.setOnDismissListener { onBackPressed() }
|
||||
|
||||
@@ -29,7 +29,7 @@ object MetadataUIUtil {
|
||||
|
||||
fun getGenreAndColour(context: Context, genre: String) = when (genre) {
|
||||
"doujinshi", "Doujinshi" -> SourceTagsUtil.GenreColor.DOUJINSHI_COLOR to R.string.doujinshi
|
||||
"manga", "Japanese Manga", "Manga" -> SourceTagsUtil.GenreColor.MANGA_COLOR to R.string.manga_type
|
||||
"manga", "Japanese Manga", "Manga" -> SourceTagsUtil.GenreColor.MANGA_COLOR to R.string.entry_type_manga
|
||||
"artistcg", "artist CG", "artist-cg", "Artist CG" -> SourceTagsUtil.GenreColor.ARTIST_CG_COLOR to R.string.artist_cg
|
||||
"gamecg", "game CG", "game-cg", "Game CG" -> SourceTagsUtil.GenreColor.GAME_CG_COLOR to R.string.game_cg
|
||||
"western" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.western
|
||||
@@ -38,11 +38,11 @@ object MetadataUIUtil {
|
||||
"cosplay" -> SourceTagsUtil.GenreColor.COSPLAY_COLOR to R.string.cosplay
|
||||
"asianporn", "asian Porn" -> SourceTagsUtil.GenreColor.ASIAN_PORN_COLOR to R.string.asian_porn
|
||||
"misc" -> SourceTagsUtil.GenreColor.MISC_COLOR to R.string.misc
|
||||
"Korean Manhwa" -> SourceTagsUtil.GenreColor.ARTIST_CG_COLOR to R.string.manhwa
|
||||
"Chinese Manhua" -> SourceTagsUtil.GenreColor.GAME_CG_COLOR to R.string.manhua
|
||||
"Comic" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.comic
|
||||
"Korean Manhwa" -> SourceTagsUtil.GenreColor.ARTIST_CG_COLOR to R.string.entry_type_manhwa
|
||||
"Chinese Manhua" -> SourceTagsUtil.GenreColor.GAME_CG_COLOR to R.string.entry_type_manhua
|
||||
"Comic" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.entry_type_comic
|
||||
"artbook" -> SourceTagsUtil.GenreColor.IMAGE_SET_COLOR to R.string.artbook
|
||||
"webtoon" -> SourceTagsUtil.GenreColor.NON_H_COLOR to R.string.webtoon
|
||||
"webtoon" -> SourceTagsUtil.GenreColor.NON_H_COLOR to R.string.entry_type_webtoon
|
||||
"Video" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.video
|
||||
else -> null
|
||||
}?.let { (genreColor, stringId) ->
|
||||
|
||||
@@ -47,7 +47,7 @@ class SmartSearchScreen(private val sourceId: Long, private val smartSearchConfi
|
||||
router.replaceTopController(transaction)
|
||||
} else {
|
||||
if (results is SmartSearchScreenModel.SearchResults.NotFound) {
|
||||
context.toast(R.string.could_not_find_manga)
|
||||
context.toast(R.string.could_not_find_entry)
|
||||
} else {
|
||||
context.toast(R.string.automatic_search_error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user