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() }