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

Commit 5691c7a2 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix preference screen padding for legacy apps (non Holo).

Also fixes the right margin for single pane preferences on phones, so the
scrollbar is fully visible.

Bug: 5262868
Bug: 5263470
Change-Id: Ifbbe22744bd42ab33578d1f01daecdea4d59f5cc
parent fe75cb34
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -35,12 +35,11 @@
            android:layout_height="match_parent">

            <ListView android:id="@android:id/list"
                style="?attr/preferenceFragmentStyle"
                android:layout_width="match_parent"
                android:layout_height="0px"
                android:layout_weight="1"
                android:drawSelectorOnTop="false"
                android:paddingLeft="@dimen/preference_fragment_padding_side"
                android:paddingRight="@dimen/preference_fragment_padding_side"
                android:scrollbarStyle="@integer/preference_fragment_scrollbarStyle"
                android:cacheColorHint="@android:color/transparent"
                android:listPreferredItemHeight="48dp"
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@

    <!-- Preference activity, vertical padding for the header list -->
    <dimen name="preference_screen_header_vertical_padding">32dp</dimen>
    <dimen name="preference_screen_side_margin">0dp</dimen>
    <!-- Compensate for double margin : preference_screen_side_margin + 4 (frame background shadow) = -preference_screen_side_margin_negative -->
    <dimen name="preference_screen_side_margin_negative">-4dp</dimen>

</resources>
+2 −0
Original line number Diff line number Diff line
@@ -705,6 +705,8 @@

        <!-- Default style for PreferenceScreen. -->
        <attr name="preferenceScreenStyle" format="reference" />
        <!-- Default style for Headers pane in PreferenceActivity. -->
        <attr name="preferenceFragmentStyle" format="reference" />
        <!-- Default style for PreferenceCategory. -->
        <attr name="preferenceCategoryStyle" format="reference" />
        <!-- Default style for Preference. -->
Loading