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

Commit ae79ee48 authored by Adnan's avatar Adnan Committed by Adnan Begovic
Browse files

Settings: Remove unnecessary padding from HeadsUpSettings.

Change-Id: I823aa97f32049dc6c6baf6c859c47219952fe454
parent b0e6f665
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.widget.Switch;

import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
import com.android.settings.cyanogenmod.PackageListAdapter;
import com.android.settings.cyanogenmod.PackageListAdapter.PackageItem;

@@ -164,6 +165,13 @@ public class HeadsUpSettings extends SettingsPreferenceFragment
                Settings.System.getUriFor(Settings.System.HEADS_UP_NOTIFICATION),
                true, mSettingsObserver);
        updateEnabledState();

        // If running on a phone, remove padding around container
        // and the preference listview
        if (!Utils.isTablet(getActivity())) {
            mPrefsContainer.setPadding(0, 0, 0, 0);
            getListView().setPadding(0, 0, 0, 0);
        }
    }

    @Override