Fix AppDetails padding on tablet UI
- force custom padding
See bug #: 13140648 Settings needs to support the new Quantum Paper theme
Change-Id: I5c26402c10a4e717cda22b320ab0790f598591c2
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java
index 6255d2a..8cb1ff7 100644
--- a/src/com/android/settings/Utils.java
+++ b/src/com/android/settings/Utils.java
@@ -382,6 +382,15 @@
}
}
+ 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.