mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 07:51:02 +00:00
fix: idr
This commit is contained in:
@@ -31,9 +31,9 @@ class DiscordDialogFragment: BottomSheetDialogFragment() {
|
||||
"anilist" -> binding.radioAnilist.isChecked = true
|
||||
else -> binding.radioAnilist.isChecked = true
|
||||
}
|
||||
binding.showIcon.isChecked = PrefManager.getVal(PrefName.ShowIcon)
|
||||
binding.showIcon.isChecked = PrefManager.getVal(PrefName.ShowAniListIcon)
|
||||
binding.showIcon.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.ShowIcon, isChecked)
|
||||
PrefManager.setVal(PrefName.ShowAniListIcon, isChecked)
|
||||
}
|
||||
binding.anilistLinkPreview.text = getString(R.string.anilist_link, PrefManager.getVal<String>(PrefName.AnilistUserName))
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ class ExtensionsActivity : AppCompatActivity() {
|
||||
val alertDialog = AlertDialog.Builder(this@ExtensionsActivity, R.style.MyPopup)
|
||||
.setTitle(R.string.edit_repositories)
|
||||
.setView(dialogView.root)
|
||||
.setPositiveButton(getString(R.string.add)) { dialog, _ ->
|
||||
.setPositiveButton(getString(R.string.add)) { _, _ ->
|
||||
if (!dialogView.repositoryTextBox.text.isNullOrBlank())
|
||||
processUserInput(dialogView.repositoryTextBox.text.toString(), type)
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
||||
Incognito(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
OfflineMode(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
DiscordStatus(Pref(Location.Irrelevant, String::class, "online")),
|
||||
ShowIcon(Pref(Location.Irrelevant, Boolean::class, true)),
|
||||
ShowAniListIcon(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
DownloadsKeys(Pref(Location.Irrelevant, String::class, "")),
|
||||
NovelLastExtCheck(Pref(Location.Irrelevant, Long::class, 0L)),
|
||||
ImageUrl(Pref(Location.Irrelevant, String::class, "")),
|
||||
|
||||
Reference in New Issue
Block a user