Support Paused manga state
This commit is contained in:
@@ -197,6 +197,11 @@ class DetailsFragment :
|
|||||||
drawableTop = ContextCompat.getDrawable(context, R.drawable.ic_state_abandoned)
|
drawableTop = ContextCompat.getDrawable(context, R.drawable.ic_state_abandoned)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MangaState.PAUSED -> infoLayout.textViewState.apply {
|
||||||
|
textAndVisible = resources.getString(R.string.state_paused)
|
||||||
|
drawableTop = ContextCompat.getDrawable(context, R.drawable.ic_action_pause)
|
||||||
|
}
|
||||||
|
|
||||||
null -> infoLayout.textViewState.isVisible = false
|
null -> infoLayout.textViewState.isVisible = false
|
||||||
}
|
}
|
||||||
if (manga.source == MangaSource.LOCAL) {
|
if (manga.source == MangaSource.LOCAL) {
|
||||||
|
|||||||
@@ -526,4 +526,5 @@
|
|||||||
<string name="manual">Manual</string>
|
<string name="manual">Manual</string>
|
||||||
<string name="available_d">Available: %1$d</string>
|
<string name="available_d">Available: %1$d</string>
|
||||||
<string name="disable_nsfw_summary">Disable NSFW sources and hide adult manga from list if possible</string>
|
<string name="disable_nsfw_summary">Disable NSFW sources and hide adult manga from list if possible</string>
|
||||||
|
<string name="state_paused">Paused</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user