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

Commit 0c9a0617 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Make group name edit dialog appcompat

Bug 29121773
Bug 18641067

Change-Id: If8e59ef691e1ff263e0fa5aee37667122c799757
parent 1c3b5c20
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -376,10 +376,9 @@
        <item name="android:fontFamily">sans-serif</item>
    </style>

    <!-- 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">
    <style name="ContactsAlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.MinWidth">
        <item name="android:colorAccent">@color/primary_color</item>
        <item name="colorAccent">@color/primary_color</item>
    </style>

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

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.FragmentManager;
@@ -23,10 +22,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;
@@ -91,9 +90,7 @@ 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 ContextThemeWrapper context = new ContextThemeWrapper(getActivity(),
                android.R.style.Theme_Holo_Light_Dialog_MinWidth);
        final AlertDialog.Builder builder = new AlertDialog.Builder(context)
        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
                .setTitle(mIsInsert
                        ? R.string.group_name_dialog_insert_title
                        : R.string.group_name_dialog_update_title)