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

Commit 4c88c784 authored by Dhina17's avatar Dhina17
Browse files

ChooseLockPatternSize: Remove header start padding in SuW

Matches header start padding with other SuW activities.

Change-Id: If8eff0a75161da21e8a7dd876d864323a0d00784
parent 731551f1
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.preference.Preference;
import androidx.recyclerview.widget.RecyclerView;
@@ -118,6 +119,16 @@ public class ChooseLockPatternSize extends SettingsActivity {

            layout.setHeaderText(R.string.lock_settings_picker_pattern_size_message);

            // Remove the padding on the start of the header text.
            if (ThemeHelper.shouldApplyMaterialYouStyle(getContext())) {
                final LinearLayout headerLayout = layout.findManagedViewById(
                        com.google.android.setupdesign.R.id.sud_layout_header);
                if (headerLayout != null) {
                    headerLayout.setPadding(0, layout.getPaddingTop(), 0,
                            layout.getPaddingBottom());
                }
            }

            // Use the dividers in SetupWizardRecyclerLayout. Suppress the dividers in
            // PreferenceFragment.
            setDivider(null);