From 0626a6badf661fb4faad8d91361f566c9d1dbd83 Mon Sep 17 00:00:00 2001 From: dfyockey Date: Sat, 26 Oct 2024 21:12:07 -0400 Subject: [PATCH] improve(settings): eliminate possible null warning --- .../diffengine/romandigitalclock/SettingsButtonBarFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/diffengine/romandigitalclock/SettingsButtonBarFragment.java b/app/src/main/java/net/diffengine/romandigitalclock/SettingsButtonBarFragment.java index 9db674d..946d553 100644 --- a/app/src/main/java/net/diffengine/romandigitalclock/SettingsButtonBarFragment.java +++ b/app/src/main/java/net/diffengine/romandigitalclock/SettingsButtonBarFragment.java @@ -59,7 +59,7 @@ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); parentActivity = requireActivity(); - prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + prefs = PreferenceManager.getDefaultSharedPreferences(requireContext()); origprefs = prefs.getAll(); }