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
This commit is contained in:
tmfang
2018-11-26 15:09:12 +08:00
committed by Tsung-Mao Fang
parent dbbbd7a83d
commit 7b2529d142

View File

@@ -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);
}