diff options
Diffstat (limited to 'src/com/android/settings/profiles/ProfilesSettings.java')
-rw-r--r-- | src/com/android/settings/profiles/ProfilesSettings.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java index 957cf82..2de2d95 100644 --- a/src/com/android/settings/profiles/ProfilesSettings.java +++ b/src/com/android/settings/profiles/ProfilesSettings.java @@ -42,17 +42,19 @@ import android.widget.Switch; import android.widget.TextView; import com.android.internal.logging.MetricsLogger; -import cyanogenmod.app.Profile; -import cyanogenmod.app.ProfileManager; import com.android.settings.R; import com.android.settings.SettingsActivity; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.SubSettings; -import com.android.settings.Utils; import com.android.settings.cyanogenmod.CMBaseSystemSettingSwitchBar; + +import cyanogenmod.app.Profile; +import cyanogenmod.app.ProfileManager; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.util.ScreenType; + import java.util.UUID; public class ProfilesSettings extends SettingsPreferenceFragment @@ -143,6 +145,11 @@ public class ProfilesSettings extends SettingsPreferenceFragment // check if we are enabled updateProfilesEnabledState(); + + // If running on a phone, remove padding around tabs + if (!ScreenType.isTablet(getActivity())) { + mContainer.setPadding(0, 0, 0, 0); + } } @Override |