correct???

This commit is contained in:
aayush262 2023-12-12 15:30:31 +05:30
parent 5c4e9d7696
commit cc98e2f307
6 changed files with 17 additions and 12 deletions

View file

@ -1156,7 +1156,8 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
}
preloading = false
val setting = loadData("incognito") ?: false
val incognito = currContext()?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
?.getBoolean("incognito", false) ?: false
val showProgressDialog =
if (settings.askIndividual) loadData<Boolean>("${media.id}_progressDialog")
?: true else false
@ -1164,7 +1165,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
AlertDialog.Builder(this, R.style.MyPopup)
.setTitle(getString(R.string.auto_update, media.userPreferredName))
.apply {
if (setting) {
if (incognito) {
setMessage(getString(R.string.incognito_will_not_update))
}
setOnCancelListener { hideSystemBars() }

View file

@ -3,6 +3,7 @@ package ani.dantotsu.media.manga.mangareader
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Bitmap
@ -804,11 +805,12 @@ class MangaReaderActivity : AppCompatActivity() {
saveData("${media.id}_progressDialog", isChecked)
showProgressDialog = !isChecked
}
val setting = loadData("incognito") ?: false
val incognito = currContext()?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
?.getBoolean("incognito", false) ?: false
AlertDialog.Builder(this, R.style.MyPopup)
.setTitle(getString(R.string.title_update_progress))
.apply {
if (setting) {
if (incognito) {
setMessage(getString(R.string.incognito_will_not_update))
}
}