mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 02:13:57 +00:00
styling fix + pos fix
This commit is contained in:
@@ -999,7 +999,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
|
||||
preloading = false
|
||||
val context = this
|
||||
|
||||
val incognito = this.getSharedPreferences("Dantotsu", MODE_PRIVATE)
|
||||
val incognito = baseContext.getSharedPreferences("Dantotsu", MODE_PRIVATE)
|
||||
.getBoolean("incognito", false)
|
||||
if (isOnline(context) && Discord.token != null && !incognito) {
|
||||
lifecycleScope.launch {
|
||||
@@ -1545,8 +1545,8 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
|
||||
if (exoPlayer.duration < playbackPosition)
|
||||
exoPlayer.seekTo(0)
|
||||
|
||||
//if playbackPosition is within 90% of the episode length, reset it to 0
|
||||
if (playbackPosition > episodeLength * 0.9) {
|
||||
//if playbackPosition is within 92% of the episode length, reset it to 0
|
||||
if (playbackPosition > exoPlayer.duration.toFloat() * 0.92) {
|
||||
playbackPosition = 0
|
||||
exoPlayer.seekTo(0)
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ class MangaReadAdapter(
|
||||
}
|
||||
|
||||
// Create AlertDialog
|
||||
AlertDialog.Builder(currContext())
|
||||
AlertDialog.Builder(currContext(), R.style.MyPopup)
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("OK") { dialog, which ->
|
||||
//add unchecked to hidden
|
||||
|
||||
Reference in New Issue
Block a user