Skip to content

Commit

Permalink
1.0.11 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanoc6 committed Aug 2, 2022
1 parent 1d4daf6 commit 72dc9de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "ani.saikou"
minSdk 21
targetSdk 31
versionCode 12
versionName "1.0.10"
versionCode 13
versionName "1.0.11"
signingConfig signingConfigs.debug
}

Expand Down
6 changes: 4 additions & 2 deletions app/src/main/java/ani/saikou/tv/TVMediaPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ import java.util.concurrent.TimeUnit
import kotlin.math.max
import kotlin.math.roundToInt

class TVMediaPlayer(var media: Media): VideoSupportFragment(), VideoPlayerGlue.OnActionClickedListener, Player.Listener {
class TVMediaPlayer: VideoSupportFragment(), VideoPlayerGlue.OnActionClickedListener, Player.Listener {

private val resumeWindow = "resumeWindow"
private val resumePosition = "resumePosition"

lateinit var media: Media

private lateinit var exoPlayer: ExoPlayer
private lateinit var cacheFactory : CacheDataSource.Factory
private lateinit var playbackParameters: PlaybackParameters
Expand Down Expand Up @@ -430,7 +432,7 @@ class TVMediaPlayer(var media: Media): VideoSupportFragment(), VideoPlayerGlue.O

val watchNextID = sharedPref.getString(TVMainActivity.watchNextChannelIDKey, null)
watchNextID?.let {
requireContext().contentResolver.update(Uri.parse(it), builder.build().toContentValues(), null)
requireContext().contentResolver.update(Uri.parse(it), builder.build().toContentValues(), null, null)
} ?: run {
val watchNextProgramUri = requireContext().contentResolver
.insert(TvContractCompat.WatchNextPrograms.CONTENT_URI,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/ani/saikou/tv/TVSearchFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import kotlinx.coroutines.launch
import java.io.Serializable
import java.util.*

class TVSearchFragment(): SearchFragment(), SearchSupportFragment.SearchResultProvider {
class TVSearchFragment: SearchFragment(), SearchSupportFragment.SearchResultProvider {

private val PAGING_THRESHOLD = 40

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/ani/saikou/tv/TVSelectorFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ class TVSelectorFragment(var media: Media, val fromPlayer: Boolean): VerticalGri
}

fun startExoplayer(media: Media){
requireActivity().supportFragmentManager.beginTransaction().addToBackStack(null).replace(R.id.main_detail_fragment, TVMediaPlayer(media)).commit()
val player = TVMediaPlayer()
player.media = media
requireActivity().supportFragmentManager.beginTransaction().addToBackStack(null).replace(R.id.main_detail_fragment, player).commit()
}

fun cancel() {
Expand Down
2 changes: 1 addition & 1 deletion stable.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.10
1.0.11

0 comments on commit 72dc9de

Please sign in to comment.