Loading res/layout/fragment_sim_import.xml +2 −2 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ android:background="?android:colorBackground" android:minHeight="48dp" android:orientation="horizontal" android:paddingEnd="32dp" android:paddingEnd="16dp" android:paddingStart="16dp"> <ImageView Loading @@ -83,8 +83,8 @@ android:id="@+id/account_expander_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="9dp" android:layout_gravity="center_vertical" android:layout_marginEnd="10dp" android:scaleType="center" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:tint="?android:textColorSecondary" Loading res/values/dimens.xml +5 −0 Original line number Diff line number Diff line Loading @@ -458,4 +458,9 @@ <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen> <!-- Row padding for call subject history items. --> <dimen name="call_subject_history_item_padding">15dp</dimen> <!-- Padding between SIM checkbox and end of row --> <dimen name="sim_import_checkbox_end_padding">16dp</dimen> </resources> src/com/android/contacts/SimImportFragment.java +7 −0 Original line number Diff line number Diff line Loading @@ -325,9 +325,12 @@ public class SimImportFragment extends DialogFragment private AccountWithDataSet mSelectedAccount; private Map<AccountWithDataSet, Set<SimContact>> mExistingMap; private Map<AccountWithDataSet, TreeSet<Long>> mPerAccountCheckedIds = new ArrayMap<>(); private final int mCheckboxPaddingEnd; public SimContactAdapter(Context context) { super(context); mCheckboxPaddingEnd = context.getResources() .getDimensionPixelOffset(R.dimen.sim_import_checkbox_end_padding); } @Override Loading @@ -344,6 +347,10 @@ public class SimImportFragment extends DialogFragment // clickable contactView.getCheckBox().setFocusable(false); contactView.getCheckBox().setClickable(false); // The default list pads the checkbox by a larger amount than we want. contactView.setPaddingRelative(contactView.getPaddingStart(), contactView.getPaddingTop(), mCheckboxPaddingEnd, contactView.getPaddingBottom()); setViewEnabled(contactView, !existsInCurrentAccount(position)); } Loading Loading
res/layout/fragment_sim_import.xml +2 −2 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ android:background="?android:colorBackground" android:minHeight="48dp" android:orientation="horizontal" android:paddingEnd="32dp" android:paddingEnd="16dp" android:paddingStart="16dp"> <ImageView Loading @@ -83,8 +83,8 @@ android:id="@+id/account_expander_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="9dp" android:layout_gravity="center_vertical" android:layout_marginEnd="10dp" android:scaleType="center" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:tint="?android:textColorSecondary" Loading
res/values/dimens.xml +5 −0 Original line number Diff line number Diff line Loading @@ -458,4 +458,9 @@ <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen> <!-- Row padding for call subject history items. --> <dimen name="call_subject_history_item_padding">15dp</dimen> <!-- Padding between SIM checkbox and end of row --> <dimen name="sim_import_checkbox_end_padding">16dp</dimen> </resources>
src/com/android/contacts/SimImportFragment.java +7 −0 Original line number Diff line number Diff line Loading @@ -325,9 +325,12 @@ public class SimImportFragment extends DialogFragment private AccountWithDataSet mSelectedAccount; private Map<AccountWithDataSet, Set<SimContact>> mExistingMap; private Map<AccountWithDataSet, TreeSet<Long>> mPerAccountCheckedIds = new ArrayMap<>(); private final int mCheckboxPaddingEnd; public SimContactAdapter(Context context) { super(context); mCheckboxPaddingEnd = context.getResources() .getDimensionPixelOffset(R.dimen.sim_import_checkbox_end_padding); } @Override Loading @@ -344,6 +347,10 @@ public class SimImportFragment extends DialogFragment // clickable contactView.getCheckBox().setFocusable(false); contactView.getCheckBox().setClickable(false); // The default list pads the checkbox by a larger amount than we want. contactView.setPaddingRelative(contactView.getPaddingStart(), contactView.getPaddingTop(), mCheckboxPaddingEnd, contactView.getPaddingBottom()); setViewEnabled(contactView, !existsInCurrentAccount(position)); } Loading