diff options
author | Steve Kondik <shade@chemlab.org> | 2013-02-14 21:15:50 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-02-14 21:15:50 -0800 |
commit | eb7a665c4621999bf2711f16c5a37af35b156546 (patch) | |
tree | e2980af18687ce148a5250a05847fce3bd0a338f /src/com/android/settings/Utils.java | |
parent | 8129ea29cafba3f1199a7935b69f949908c01011 (diff) | |
parent | 20a2aaa9595e9ab958d27eb430af6560e24ba78c (diff) | |
download | packages_apps_settings-eb7a665c4621999bf2711f16c5a37af35b156546.zip packages_apps_settings-eb7a665c4621999bf2711f16c5a37af35b156546.tar.gz packages_apps_settings-eb7a665c4621999bf2711f16c5a37af35b156546.tar.bz2 |
Merge branch 'mr1.1-staging' of git://github.com/CyanogenMod/android_packages_apps_Settings into mr1.1-staging
Change-Id: I17e7cea5e432d0025c64465a7c01c42bb24e7133
Diffstat (limited to 'src/com/android/settings/Utils.java')
-rw-r--r-- | src/com/android/settings/Utils.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java index dcd37d1..3bc244c 100644 --- a/src/com/android/settings/Utils.java +++ b/src/com/android/settings/Utils.java @@ -312,7 +312,7 @@ public class Utils { } // Did not find a matching activity, so remove the preference - if (target.remove(header)) System.err.println("Removed " + header.id); + target.remove(header); return false; } @@ -436,13 +436,20 @@ public class Utils { return statusString; } + public static void forcePrepareCustomPreferencesList( + ViewGroup parent, View child, ListView list, boolean ignoreSidePadding) { + list.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); + list.setClipToPadding(false); + prepareCustomPreferencesList(parent, child, list, ignoreSidePadding); + } + /** * Prepare a custom preferences layout, moving padding to {@link ListView} * when outside scrollbars are requested. Usually used to display * {@link ListView} and {@link TabWidget} with correct padding. */ public static void prepareCustomPreferencesList( - ViewGroup parent, View child, ListView list, boolean ignoreSidePadding) { + ViewGroup parent, View child, View list, boolean ignoreSidePadding) { final boolean movePadding = list.getScrollBarStyle() == View.SCROLLBARS_OUTSIDE_OVERLAY; if (movePadding && parent instanceof PreferenceFrameLayout) { ((PreferenceFrameLayout.LayoutParams) child.getLayoutParams()).removeBorders = true; |