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

Commit 3d53e233 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Use Theme.AppCompat.Light.Dialog

Here's a link to the screenshots:
https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2UWNsLXBtUXdyZjQ&usp=sharing

Bug: 25629359
Change-Id: I9342e8b0b03d5fc5f9e02c8dc52f406dc0724c65
parent 033eeb3e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -292,16 +292,17 @@
    <style name="NonPhoneDialogTheme" parent="@android:Theme.Material.Light.Dialog">
    </style>

    <style name="ConfirmAddDetailDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.MinWidth">
    <style name="ConfirmAddDetailDialogTheme" parent="Theme.AppCompat.Light.Dialog">
        <item name="android:windowCloseOnTouchOutside">true</item>
    </style>

    <style name="ContactEditorAccountsChangedActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar.MinWidth">
    <style name="ContactEditorAccountsChangedActivityTheme" parent="Theme.AppCompat.Light.Dialog">
        <item name="android:windowCloseOnTouchOutside">true</item>
        <item name="android:textColorPrimary">@color/primary_text_color</item>
        <item name="android:textColorSecondary">@color/secondary_text_color</item>
        <item name="android:listViewStyle">@style/ListViewStyle</item>
        <item name="android:colorAccent">@color/primary_color</item>
        <item name="colorAccent">@color/primary_color</item>
    </style>

    <style name="SectionDivider">
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.contacts.activities;

import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.AsyncQueryHandler;
@@ -47,6 +46,7 @@ import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.Data;
import android.provider.ContactsContract.RawContacts;
import android.provider.ContactsContract.RawContactsEntity;
import android.support.v7.app.AppCompatActivity;
import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import android.util.Log;
@@ -102,7 +102,7 @@ import java.util.List;
 * Note when there's no accounts, it *is* okay to show the picker / dialog, because the local-only
 * contacts are writable.
 */
public class ConfirmAddDetailActivity extends Activity implements
public class ConfirmAddDetailActivity extends AppCompatActivity implements
        DialogManager.DialogShowingViewActivity {

    private static final String TAG = "ConfirmAdd"; // The class name is too long to be a tag.
+2 −2
Original line number Diff line number Diff line
@@ -16,12 +16,12 @@

package com.android.contacts.activities;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract.Intents;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
@@ -47,7 +47,7 @@ import java.util.List;
 * the new contact in. If the activity result doesn't contain intent data, then there is no
 * account for this contact.
 */
public class ContactEditorAccountsChangedActivity extends Activity {
public class ContactEditorAccountsChangedActivity extends AppCompatActivity {

    private static final String TAG = ContactEditorAccountsChangedActivity.class.getSimpleName();