Skip to content

Commit

Permalink
fix preferences crash
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Mar 5, 2025
1 parent e64df0f commit 6018b40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MyPreferenceFragment : PreferenceFragmentCompat(), OnSharedPreferenceChang
.getDefaultSharedPreferences(context)
.registerOnSharedPreferenceChangeListener(this)
}
overview.setVersionView(requireActivity().findViewById<TextView>(R.id.version))
requireActivity().findViewById<TextView>(R.id.version)?.let { overview.setVersionView(it) }
}

override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
Expand Down

1 comment on commit 6018b40

@vanelsberg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.