summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/Utils.java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-07-18 19:58:50 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-07-18 19:58:50 -0700
commit38ba9a2d4350fc7d063ec21c994183258bf7a443 (patch)
tree2a9f35fcbf167bac85cc2cf7afb4df1b89fbbcc2 /src/com/android/settings/Utils.java
parent97a18c81119566164de3f548fb25f296f114d81f (diff)
downloadpackages_apps_Settings-38ba9a2d4350fc7d063ec21c994183258bf7a443.tar.gz
packages_apps_Settings-38ba9a2d4350fc7d063ec21c994183258bf7a443.tar.bz2
packages_apps_Settings-38ba9a2d4350fc7d063ec21c994183258bf7a443.zip
Fix AppDetails padding on tablet UI
- force custom padding See bug #: 13140648 Settings needs to support the new Quantum Paper theme Change-Id: I5c26402c10a4e717cda22b320ab0790f598591c2
Diffstat (limited to 'src/com/android/settings/Utils.java')
-rw-r--r--src/com/android/settings/Utils.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java
index 6255d2a0f..8cb1ff74a 100644
--- a/src/com/android/settings/Utils.java
+++ b/src/com/android/settings/Utils.java
@@ -382,6 +382,15 @@ public final class Utils {
}
}
+ public static void forceCustomPadding(View view) {
+ final Resources res = view.getResources();
+ final int paddingSide = res.getDimensionPixelSize(R.dimen.settings_side_margin);
+ final int paddingBottom = res.getDimensionPixelSize(
+ com.android.internal.R.dimen.preference_fragment_padding_bottom);
+
+ view.setPaddingRelative(paddingSide, 0, paddingSide, paddingBottom);
+ }
+
/**
* Return string resource that best describes combination of tethering
* options available on this device.