From 7b2529d142e8893b49d1cf7e01465411bd7d2f40 Mon Sep 17 00:00:00 2001 From: tmfang Date: Mon, 26 Nov 2018 15:09:12 +0800 Subject: [PATCH] Clean up LayoutPreference - There is no any custom preference uses R.id.all_details, so clean up some code. Test: robotest Bug: 120005054 Change-Id: Ib40483934cd6d6c0bbaa2864d40dbf09483d98aa --- src/com/android/settings/applications/LayoutPreference.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/com/android/settings/applications/LayoutPreference.java b/src/com/android/settings/applications/LayoutPreference.java index 9c3cfaf1f8d..68413e7a841 100644 --- a/src/com/android/settings/applications/LayoutPreference.java +++ b/src/com/android/settings/applications/LayoutPreference.java @@ -82,10 +82,6 @@ public class LayoutPreference extends Preference { private void setView(View view) { setLayoutResource(R.layout.layout_preference_frame); - final ViewGroup allDetails = view.findViewById(R.id.all_details); - if (allDetails != null) { - Utils.forceCustomPadding(allDetails, true /* additive padding */); - } mRootView = view; setShouldDisableView(false); }