Refine the mobile data selection UI am: 964c7d5eaf am: d4b95990e9

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2063556

Change-Id: I00831568c5e8f24676fe640ec7f1756d30a41efc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
SongFerngWang
2022-04-14 09:59:21 +00:00
committed by Automerger Merge Worker
5 changed files with 16 additions and 2 deletions

View File

@@ -200,6 +200,16 @@ public class SimListDialogFragment extends SimDialogFragment implements
final TextView title = convertView.findViewById(R.id.title);
final TextView summary = convertView.findViewById(R.id.summary);
ViewGroup.MarginLayoutParams lp =
(ViewGroup.MarginLayoutParams) parent.getLayoutParams();
if (lp != null) {
lp.setMargins(0, mContext.getResources().getDimensionPixelSize(
R.dimen.sims_select_margin_top), 0,
mContext.getResources().getDimensionPixelSize(
R.dimen.sims_select_margin_bottom));
convertView.setLayoutParams(lp);
}
if (sub == null) {
if (position == 0) {
title.setText(R.string.sim_calls_ask_first_prefs_title);