From 42484d718a4cda19d3e2a7fdd8e2c6ba9ffa2e72 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 3 Jul 2016 21:19:34 +0200 Subject: [PATCH] And a few more crashes fixed in preferences --- .../eu/kanade/tachiyomi/ui/setting/SettingsGeneralFragment.kt | 2 +- .../eu/kanade/tachiyomi/ui/setting/SettingsSourcesFragment.kt | 2 +- .../java/eu/kanade/tachiyomi/ui/setting/SettingsSyncFragment.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralFragment.kt index f49694f1f..139106c77 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralFragment.kt @@ -79,7 +79,7 @@ class SettingsGeneralFragment : SettingsFragment(), if (p.key == getString(R.string.pref_library_columns_dialog_key)) { val fragment = LibraryColumnsDialog.newInstance(p) fragment.setTargetFragment(this, 0) - fragment.show(childFragmentManager, null) + fragment.show(fragmentManager, null) return true } return false diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSourcesFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSourcesFragment.kt index a51d848ee..6ff843068 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSourcesFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSourcesFragment.kt @@ -73,7 +73,7 @@ class SettingsSourcesFragment : SettingsFragment() { setOnPreferenceClickListener { val fragment = SourceLoginDialog.newInstance(source) fragment.setTargetFragment(this@SettingsSourcesFragment, SOURCE_CHANGE_REQUEST) - fragment.show(childFragmentManager, null) + fragment.show(fragmentManager, null) true } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSyncFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSyncFragment.kt index e5180048f..6e6c595b5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSyncFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSyncFragment.kt @@ -42,7 +42,7 @@ class SettingsSyncFragment : SettingsFragment() { setOnPreferenceClickListener { val fragment = MangaSyncLoginDialog.newInstance(sync) fragment.setTargetFragment(this@SettingsSyncFragment, SYNC_CHANGE_REQUEST) - fragment.show(childFragmentManager, null) + fragment.show(fragmentManager, null) true } }