summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/ProfilesList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/ProfilesList.java')
-rw-r--r--src/com/android/settings/profiles/ProfilesList.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/ProfilesList.java b/src/com/android/settings/profiles/ProfilesList.java
index 34e53a0..4a384dc 100644
--- a/src/com/android/settings/profiles/ProfilesList.java
+++ b/src/com/android/settings/profiles/ProfilesList.java
@@ -35,7 +35,8 @@ import android.widget.ListView;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
-import com.android.settings.Utils;
+
+import org.cyanogenmod.internal.util.ScreenType;
public class ProfilesList extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
@@ -60,6 +61,11 @@ public class ProfilesList extends SettingsPreferenceFragment implements
public void onResume() {
super.onResume();
refreshList();
+
+ // On tablet devices remove the padding
+ if (ScreenType.isTablet(getActivity())) {
+ getListView().setPadding(0, 0, 0, 0);
+ }
}
@Override