From 2c7e14074c6a78424700f0eb33032adf3d959234 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Sun, 7 Jan 2018 22:39:17 +0100 Subject: [PATCH] Fix navigation not being created. --- .../preference/activity/fragment/NavigationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/de/mrapp/android/preference/activity/fragment/NavigationFragment.java b/library/src/main/java/de/mrapp/android/preference/activity/fragment/NavigationFragment.java index 5f0fb09..0eff8dc 100644 --- a/library/src/main/java/de/mrapp/android/preference/activity/fragment/NavigationFragment.java +++ b/library/src/main/java/de/mrapp/android/preference/activity/fragment/NavigationFragment.java @@ -387,7 +387,7 @@ public final PreferenceGroupAdapter createAdapter(@NonNull final Context context public final void onActivityCreated(final Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - if (isAdapterCreated()) { + if (!isAdapterCreated()) { notifyOnNavigationFragmentCreated(); } }