Skip to content

Commit

Permalink
Release 1.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanoc6 committed Aug 13, 2022
1 parent 2f5e760 commit 006f9fa
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
minSdk 21
targetSdk 31
versionCode 16
versionName "1.0.16"
versionName "1.0.13"
signingConfig signingConfigs.debug
}

Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/ani/saikou/tv/TVAnimeDetailFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class TVAnimeDetailFragment() : DetailsSupportFragment() {

clearEpisodes()
if (total == 0) {
rowsAdapter.add(HeaderOnlyRow("No episodes found, try another source"))
rowsAdapter.add(HeaderOnlyRow(getString(R.string.source_not_found)))
} else if (total > limit) {
val arr = episodes.keys.toList()
val numberOfChips = ceil((total).toDouble() / limit).toInt()
Expand All @@ -199,7 +199,7 @@ class TVAnimeDetailFragment() : DetailsSupportFragment() {
val startIndex = limit * (index)
val start = arr[startIndex]
val end = arr[last - 1]
createEpisodePresenter("Episodes ${start} - ${end}").addAll(
createEpisodePresenter(getString(R.string.eps) + " ${start} - ${end}").addAll(
0,
episodes.values.toList().subList(
startIndex,
Expand All @@ -209,7 +209,7 @@ class TVAnimeDetailFragment() : DetailsSupportFragment() {
}
focusLastViewedEpisode(episodes)
} else {
createEpisodePresenter("Episodes").addAll(
createEpisodePresenter(getString(R.string.eps)).addAll(
0,
episodes.values.toList()
)
Expand Down Expand Up @@ -366,15 +366,15 @@ class TVAnimeDetailFragment() : DetailsSupportFragment() {

selected.source.let {
val source = model.watchSources?.get(selected.source)
actions.add(DetailActionsPresenter.SourceAction(0, "Source: " + source?.name))
actions.add(DetailActionsPresenter.SourceAction(0, getString(R.string.source) +": " + source?.name))
if(source?.isDubAvailableSeparately == true){
actions.add(DetailActionsPresenter.SwitchAction(3, getString(R.string.dubbed), selected.preferDub))
}
}

actions.add(DetailActionsPresenter.InfoAction(1, "+Info"))

actions.add(DetailActionsPresenter.ChangeAction(2, "Wrong title?"))
actions.add(DetailActionsPresenter.ChangeAction(2, getString(R.string.wrong)))
}

private fun processAction(action: Action){
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/java/ani/saikou/tv/TVAnimeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ class TVAnimeFragment: BrowseSupportFragment() {
popularAdapter = ArrayObjectAdapter(AnimePresenter(0, requireActivity()))
updatedAdapter = ArrayObjectAdapter(AnimePresenter(0, requireActivity()))

continueRow = ListRow(HeaderItem("Continue Watching"), continueAdapter)
recommendedRow = ListRow(HeaderItem("Recommended"), recommendedAdapter)
genresRow = ListRow(HeaderItem("Genres"), genresAdapter)
trendingRow = ListRow(HeaderItem("Trending"), trendingAdapter)
popularRow = ListRow(HeaderItem("Popular"), popularAdapter)
updatedRow = ListRow(HeaderItem("Updated"), updatedAdapter)
continueRow = ListRow(HeaderItem(getString(R.string.continue_watching)), continueAdapter)
recommendedRow = ListRow(HeaderItem(getString(R.string.recommended)), recommendedAdapter)
genresRow = ListRow(HeaderItem(getString(R.string.genres)), genresAdapter)
trendingRow = ListRow(HeaderItem(getString(R.string.trending_anime)), trendingAdapter)
popularRow = ListRow(HeaderItem(getString(R.string.popular_anime)), popularAdapter)
updatedRow = ListRow(HeaderItem(getString(R.string.updated)), updatedAdapter)

progressBarManager.initialDelay = 0
progressBarManager.show()
Expand Down Expand Up @@ -215,7 +215,7 @@ class TVAnimeFragment: BrowseSupportFragment() {
rowAdapter.add(trendingRow)
rowAdapter.add(popularRow)
rowAdapter.add(updatedRow)
rowAdapter.add(ButtonListRow("Login", object : ButtonListRow.OnClickListener {
rowAdapter.add(ButtonListRow(getString(R.string.login), object : ButtonListRow.OnClickListener {
override fun onClick() {
requireActivity().supportFragmentManager.beginTransaction()
.replace(R.id.main_tv_fragment, TVLoginFragment()).addToBackStack("home")
Expand All @@ -232,7 +232,7 @@ class TVAnimeFragment: BrowseSupportFragment() {
rowAdapter.add(trendingRow)
rowAdapter.add(popularRow)
rowAdapter.add(updatedRow)
rowAdapter.add(ButtonListRow("Logout", object : ButtonListRow.OnClickListener {
rowAdapter.add(ButtonListRow(getString(R.string.logout), object : ButtonListRow.OnClickListener {
override fun onClick() {
Anilist.removeSavedToken(requireContext())
reloadScreen()
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/ani/saikou/tv/TVMediaPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ class TVMediaPlayer: VideoSupportFragment(), VideoPlayerGlue.OnActionClickedList
playerGlue.title = media.mainName()

if(!episode.title.isNullOrEmpty())
playerGlue.subtitle = "Episode "+ episode.number + ": "+ episode.title
playerGlue.subtitle = getString(R.string.ep)+ " "+ episode.number + ": "+ episode.title
else
playerGlue.subtitle = "Episode "+ episode.number
playerGlue.subtitle = getString(R.string.ep)+ " "+ episode.number


playerGlue.playWhenPrepared()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/tv_anime_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:fontFamily="@font/poppins"
android:text="Synopsis:"
android:text="@string/description"
android:textSize="16sp"
android:textStyle="bold"/>

Expand Down
2 changes: 1 addition & 1 deletion stable.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.12
1.0.13

0 comments on commit 006f9fa

Please sign in to comment.