styling fix + pos fix
This commit is contained in:
parent
1bbc98d350
commit
0d422a57e7
2 changed files with 4 additions and 4 deletions
|
@ -999,7 +999,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
|
||||||
preloading = false
|
preloading = false
|
||||||
val context = this
|
val context = this
|
||||||
|
|
||||||
val incognito = this.getSharedPreferences("Dantotsu", MODE_PRIVATE)
|
val incognito = baseContext.getSharedPreferences("Dantotsu", MODE_PRIVATE)
|
||||||
.getBoolean("incognito", false)
|
.getBoolean("incognito", false)
|
||||||
if (isOnline(context) && Discord.token != null && !incognito) {
|
if (isOnline(context) && Discord.token != null && !incognito) {
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
|
@ -1545,8 +1545,8 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
|
||||||
if (exoPlayer.duration < playbackPosition)
|
if (exoPlayer.duration < playbackPosition)
|
||||||
exoPlayer.seekTo(0)
|
exoPlayer.seekTo(0)
|
||||||
|
|
||||||
//if playbackPosition is within 90% of the episode length, reset it to 0
|
//if playbackPosition is within 92% of the episode length, reset it to 0
|
||||||
if (playbackPosition > episodeLength * 0.9) {
|
if (playbackPosition > exoPlayer.duration.toFloat() * 0.92) {
|
||||||
playbackPosition = 0
|
playbackPosition = 0
|
||||||
exoPlayer.seekTo(0)
|
exoPlayer.seekTo(0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ class MangaReadAdapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create AlertDialog
|
// Create AlertDialog
|
||||||
AlertDialog.Builder(currContext())
|
AlertDialog.Builder(currContext(), R.style.MyPopup)
|
||||||
.setView(dialogView)
|
.setView(dialogView)
|
||||||
.setPositiveButton("OK") { dialog, which ->
|
.setPositiveButton("OK") { dialog, which ->
|
||||||
//add unchecked to hidden
|
//add unchecked to hidden
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue