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

Commit 4e69d9cc authored by guanxiongliu's avatar guanxiongliu
Browse files

Updating creating group dialog up to spec

 - Updating title layout
 - Moving edit line aligned with title

Bug:30079784
Change-Id: I72b79feb74ee29008cd72c566bde72f8d17a0cad
parent cb26b372
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@
        android:layout_height="wrap_content"
        android:minHeight="@dimen/group_name_edit_text_min_height"
        android:layout_marginBottom="4dp"
        android:layout_marginLeft="4dp"
        android:layout_marginRight="4dp"
        android:layout_marginTop="16dp"
        android:hint="@string/group_name_dialog_hint"
+6 −3
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.android.contacts.R;

@@ -91,10 +92,12 @@ public final class GroupNameEditDialogFragment extends DialogFragment {
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        // Build a dialog with two buttons and a view of a single EditText input field
        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
                .setTitle(mIsInsert
        final TextView title = (TextView) View.inflate(getActivity(), R.layout.dialog_title, null);
        title.setText(mIsInsert
                ? R.string.group_name_dialog_insert_title
                        : R.string.group_name_dialog_update_title)
                : R.string.group_name_dialog_update_title);
        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
                .setCustomTitle(title)
                .setView(R.layout.group_name_edit_dialog)
                .setNegativeButton(android.R.string.cancel, new OnClickListener() {
                    @Override