Bug 1850796 - Handle preferenceToScrollTo arg nullability.

fenix/119.0
mcarare 9 months ago committed by mergify[bot]
parent 8dd98bd7d5
commit a184fd480a

@ -178,9 +178,10 @@ class SettingsFragment : PreferenceFragmentCompat() {
requireView().findViewById<RecyclerView>(R.id.recycler_view)
?.hideInitialScrollBar(viewLifecycleOwner.lifecycleScope)
if (args.preferenceToScrollTo != null) {
scrollToPreference(args.preferenceToScrollTo)
args.preferenceToScrollTo?.let {
scrollToPreference(it)
}
// Consider finish of `onResume` to be the point at which we consider this fragment as 'created'.
creatingFragment = false
}

Loading…
Cancel
Save