mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 18:08:24 +01:00
Fix #191
This commit is contained in:
parent
1d7f012fd1
commit
fad0027e17
@ -19,24 +19,24 @@ class SettingsAccountsFragment : SettingsNestedFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
PreferenceCategory(context).apply {
|
PreferenceCategory(activity).apply {
|
||||||
preferenceScreen.addPreference(this)
|
preferenceScreen.addPreference(this)
|
||||||
title = "Sources"
|
title = "Sources"
|
||||||
|
|
||||||
for (source in getSourcesWithLogin()) {
|
for (source in getSourcesWithLogin()) {
|
||||||
val dialog = SourceLoginDialog(context, preferences, source)
|
val dialog = SourceLoginDialog(activity, preferences, source)
|
||||||
dialog.title = source.name
|
dialog.title = source.name
|
||||||
|
|
||||||
addPreference(dialog)
|
addPreference(dialog)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PreferenceCategory(context).apply {
|
PreferenceCategory(activity).apply {
|
||||||
preferenceScreen.addPreference(this)
|
preferenceScreen.addPreference(this)
|
||||||
title = "Sync"
|
title = "Sync"
|
||||||
|
|
||||||
for (sync in settingsActivity.syncManager.services) {
|
for (sync in settingsActivity.syncManager.services) {
|
||||||
val dialog = MangaSyncLoginDialog(context, preferences, sync)
|
val dialog = MangaSyncLoginDialog(activity, preferences, sync)
|
||||||
dialog.title = sync.name
|
dialog.title = sync.name
|
||||||
|
|
||||||
addPreference(dialog)
|
addPreference(dialog)
|
||||||
|
Loading…
Reference in New Issue
Block a user