From 2beb8bf874a51150ed538215ed21d698c8d91fac Mon Sep 17 00:00:00 2001 From: DvTonder Date: Wed, 11 Feb 2015 08:25:13 -0500 Subject: Fix Profiles settings screen padding Change-Id: Iff56f777141cc1e56492da7a2b20e2af02a7db8f --- src/com/android/settings/profiles/ProfilesList.java | 5 ----- src/com/android/settings/profiles/ProfilesSettings.java | 8 -------- 2 files changed, 13 deletions(-) (limited to 'src/com/android/settings/profiles') diff --git a/src/com/android/settings/profiles/ProfilesList.java b/src/com/android/settings/profiles/ProfilesList.java index 7cc2048..250051a 100644 --- a/src/com/android/settings/profiles/ProfilesList.java +++ b/src/com/android/settings/profiles/ProfilesList.java @@ -57,11 +57,6 @@ public class ProfilesList extends SettingsPreferenceFragment implements public void onResume() { super.onResume(); refreshList(); - - // On tablet devices remove the padding - if (Utils.isTablet(getActivity())) { - getListView().setPadding(0, 0, 0, 0); - } } public void refreshList() { diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java index 1f14113..0c3bcd9 100644 --- a/src/com/android/settings/profiles/ProfilesSettings.java +++ b/src/com/android/settings/profiles/ProfilesSettings.java @@ -30,9 +30,6 @@ import android.os.Bundle; import android.provider.Settings; import android.support.v4.view.ViewPager; import android.support.v13.app.FragmentStatePagerAdapter; -import android.util.Log; -import android.view.Gravity; -import android.text.TextUtils; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; @@ -143,11 +140,6 @@ public class ProfilesSettings extends SettingsPreferenceFragment { // check if we are enabled updateProfilesEnabledState(); - - // If running on a phone, remove padding around tabs - if (!Utils.isTablet(getActivity())) { - mContainer.setPadding(0, 0, 0, 0); - } } @Override -- cgit v1.1