am 6d26c173
: Merge "Fix AppDetails padding on tablet UI" into lmp-dev
* commit '6d26c1738004cd8df1efe2b4d9d98daac3a5555a': Fix AppDetails padding on tablet UI
This commit is contained in:
@@ -390,6 +390,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.
|
||||
|
@@ -452,7 +452,9 @@ public class InstalledAppDetails extends Fragment
|
||||
public View onCreateView(
|
||||
LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
final View view = inflater.inflate(R.layout.installed_app_details, container, false);
|
||||
Utils.prepareCustomPreferencesList(container, view, view, false);
|
||||
|
||||
final ViewGroup allDetails = (ViewGroup) view.findViewById(R.id.all_details);
|
||||
Utils.forceCustomPadding(allDetails);
|
||||
|
||||
mRootView = view;
|
||||
mComputingStr = getActivity().getText(R.string.computing_size);
|
||||
|
Reference in New Issue
Block a user