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

Commit 495e70b7 authored by Nancy Chen's avatar Nancy Chen
Browse files

Update padding base settings for dialer

2. Adjusted the padding around the base call settings preference page to
match the settings on the sub preferences

Bug: 17529308
Change-Id: Iba1c6cfb4057cf56e8250abea25602aa2ce4eac8
parent 4a5a1bd9
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -25,14 +25,6 @@
    android:gravity="center_vertical"
    android:paddingEnd="?android:attr/scrollbarSize">

    <ImageView
        android:id="@+id/icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="6dip"
        android:layout_marginEnd="6dip"
        android:layout_gravity="center" />

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
+1 −2
Original line number Diff line number Diff line
@@ -137,9 +137,8 @@
    <dimen name="empty_list_message_text_size">16sp</dimen>

    <!-- Dimensions for individual preference cards -->
    <dimen name="preference_padding_top">18dp</dimen>
    <dimen name="preference_padding_top">16dp</dimen>
    <dimen name="preference_padding_bottom">16dp</dimen>
    <dimen name="preference_side_margin">16dp</dimen>
    <dimen name="preference_list_top_padding">4dp</dimen>
    <dimen name="preference_summary_line_spacing_extra">4dp</dimen>
</resources>
+0 −6
Original line number Diff line number Diff line
@@ -36,9 +36,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPreferences = PreferenceManager.getDefaultSharedPreferences(this);
        final int topPadding = getResources().getDimensionPixelSize(
                R.dimen.preference_list_top_padding);
        getListView().setPadding(0, topPadding, 0, 0);
    }

    @Override
@@ -113,7 +110,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity {
     */
    private static class HeaderAdapter extends ArrayAdapter<Header> {
        static class HeaderViewHolder {
            ImageView icon;
            TextView title;
            TextView summary;
        }
@@ -133,7 +129,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity {
            if (convertView == null) {
                view = mInflater.inflate(R.layout.dialer_preferences, parent, false);
                holder = new HeaderViewHolder();
                holder.icon = (ImageView) view.findViewById(R.id.icon);
                holder.title = (TextView) view.findViewById(R.id.title);
                holder.summary = (TextView) view.findViewById(R.id.summary);
                view.setTag(holder);
@@ -144,7 +139,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity {

            // All view fields must be updated every time, because the view may be recycled
            Header header = getItem(position);
            holder.icon.setImageResource(header.iconRes);
            holder.title.setText(header.getTitle(getContext().getResources()));
            CharSequence summary = header.getSummary(getContext().getResources());
            if (!TextUtils.isEmpty(summary)) {