Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49782602 authored by Hai Zhang's avatar Hai Zhang
Browse files

[SettingsLib] Only add 2dp margin between preferences for Expressive Design

So that the UX changes introduced in ag/32736507 won't break visuals on
existing platforms/devices.

Bug: b/421350166#comment11
Flag: EXEMPT bugfix
Test: presubmit
Change-Id: I34214205e577d13fca6b6daa32cd4c9f7fdf9b6d
parent dd4b5a63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,8 +45,8 @@ abstract class SettingsBasePreferenceFragment : PreferenceFragmentCompat() {
        if (SettingsThemeHelper.isExpressiveTheme(requireContext())) {
            // Don't allow any divider in between the preferences in expressive design.
            setDivider(null)
            listView?.addItemDecoration(MarginItemDecoration())
        }
        this.listView?.addItemDecoration(MarginItemDecoration())
    }

    override fun onCreateAdapter(preferenceScreen: PreferenceScreen): RecyclerView.Adapter<*> {