Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b105026 authored by Mindy Pereira's avatar Mindy Pereira Committed by Android (Google) Code Review
Browse files

Merge "Make fixes to the quick contact layout."

parents 06581365 e128f1e6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
            android:id="@android:id/text2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/primary_text_color"
            android:textColor="@color/secondary_text_color"
            android:textAllCaps="true"
            android:textAppearance="?android:attr/textAppearanceSmall" />
    </LinearLayout>
@@ -64,4 +64,10 @@
        android:background="?android:attr/selectableItemBackground"
        android:duplicateParentState="false"
        android:nextFocusLeft="@id/actions_view_container" />
    <View
        android:id="@+id/vertical_divider"
        android:layout_width="1dip"
        android:layout_height="match_parent"
        android:layout_gravity="center_vertical"
        android:background="?android:attr/dividerVertical" />
</LinearLayout>
+8 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import com.android.contacts.R;
import android.app.Fragment;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
@@ -125,7 +126,13 @@ public class QuickContactListFragment extends Fragment {
                }

                text1.setText(action.getBody());
                text2.setText(action.getSubtitle());
                CharSequence subtitle = action.getSubtitle();
                text2.setText(subtitle);
                if (TextUtils.isEmpty(subtitle)) {
                    text2.setVisibility(View.GONE);
                } else {
                    text2.setVisibility(View.VISIBLE);
                }

                return resultView;
            }