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

Commit c134dda7 authored by Wenyi Wang's avatar Wenyi Wang Committed by Android (Google) Code Review
Browse files

Merge "Revert "Make group name edit dialog appcompat""

parents 4be1bea4 4a084e40
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -376,9 +376,10 @@
        <item name="android:fontFamily">sans-serif</item>
    </style>

    <style name="ContactsAlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.MinWidth">
    <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
        since the Alert dialog is private. They are identical anyway. -->
    <style name="ContactsAlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
        <item name="android:colorAccent">@color/primary_color</item>
        <item name="colorAccent">@color/primary_color</item>
    </style>

    <style name="EditKindIconStyle">
+5 −2
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */
package com.android.contacts.group;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.FragmentManager;
@@ -22,10 +23,10 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.ContextThemeWrapper;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
@@ -90,7 +91,9 @@ 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())
        final ContextThemeWrapper context = new ContextThemeWrapper(getActivity(),
                android.R.style.Theme_Holo_Light_Dialog_MinWidth);
        final AlertDialog.Builder builder = new AlertDialog.Builder(context)
                .setTitle(mIsInsert
                        ? R.string.group_name_dialog_insert_title
                        : R.string.group_name_dialog_update_title)